Skip to content

Commit

Permalink
Fix target_compile_definitions to work with a generator expression
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jul 4, 2024
1 parent f3121e2 commit bf36356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oscar_compiler_configuration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ target_link_options(oscar_compiler_configuration INTERFACE
target_compile_features(oscar_compiler_configuration INTERFACE cxx_std_20)

target_compile_definitions(oscar_compiler_configuration INTERFACE
$<$<BOOL:${OSC_FORCE_ASSERTS_ENABLED}>:-DOSC_FORCE_ASSERTS_ENABLED=1>
$<$<BOOL:${OSC_RUNTIME_PERF_MEASUREMENTS_ENABLED}>:-DOSC_RUNTIME_PERF_MEASUREMENTS_ENABLED=1>
$<$<BOOL:${OSC_FORCE_ASSERTS_ENABLED}>:OSC_FORCE_ASSERTS_ENABLED>
$<$<BOOL:${OSC_RUNTIME_PERF_MEASUREMENTS_ENABLED}>:OSC_RUNTIME_PERF_MEASUREMENTS_ENABLED>
)

0 comments on commit bf36356

Please sign in to comment.