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:
Mateusz Pusz
2021-04-06 13:33:27 +02:00
parent a954f5d924
commit c3659dbb47
92 changed files with 181 additions and 185 deletions
+1 -3
View File
@@ -45,7 +45,5 @@ endfunction()
#
function(add_units_system name)
add_units_module(${name} ${ARGN})
if(UNITS_UDLS)
target_compile_definitions(mp-units-${name} INTERFACE UNITS_UDLS=1)
endif()
target_compile_definitions(mp-units-${name} INTERFACE $<$<BOOL:${UNITS_LITERALS}>:UNITS_LITERALS>)
endfunction()