fix(cpp_args): properly propegate args

previously Cpp args were set with add_project_argument, which does not work from subprojects. Changed this so args can be set from calling projects
This commit is contained in:
2026-02-03 11:20:21 -05:00
parent 917d416ce2
commit 7ab0d21ba1
6 changed files with 22 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ else
endif
if get_option('openmp_support')
add_project_arguments('-DGF_USE_OPENMP', language: 'cpp')
gridfire_args += ['-DGF_USE_OPENMP']
endif
if get_option('asan') and get_option('buildtype') != 'debug' and get_option('buildtype') != 'debugoptimized'