refactor: UNITS_UDLS renamed to UNITS_LITERALS
Also now the existence of the preprocessor flag is enough to trigger the feature (`#ifdef` instead of `#if`)
This commit is contained in:
1 parent
a954f5d924
commit
c3659dbb47
92 files changed
+181
-185
No files matched your search
@@ -25,7 +25,7 @@ cmake_minimum_required(VERSION 3.2)
|
||||
function(add_example target)
|
||||
add_executable(${target}_alt ${target}.cpp)
|
||||
target_link_libraries(${target}_alt PRIVATE mp-units::mp-units)
|
||||
target_compile_definitions(${target}_alt PRIVATE UNITS_UDLS=1)
|
||||
target_compile_definitions(${target}_alt PRIVATE UNITS_LITERALS)
|
||||
endfunction()
|
||||
|
||||
add_example(box_example mp-units::si)
|
||||
|
||||
Reference in new issue
Block a user