build: got rid of global options for references and literals

This commit is contained in:
Mateusz Pusz
2021-04-06 16:30:26 +02:00
parent b3b52148c0
commit 512406e900
15 changed files with 10 additions and 76 deletions
-12
View File
@@ -38,15 +38,3 @@ function(add_units_module name)
install(TARGETS mp-units-${name} EXPORT mp-unitsTargets)
install(DIRECTORY include/units TYPE INCLUDE)
endfunction()
#
# add_units_systems(ModuleName <depependencies>...)
#
function(add_units_system name)
add_units_module(${name} ${ARGN})
target_compile_definitions(mp-units-${name} INTERFACE
$<$<BOOL:${UNITS_REFERENCES}>:UNITS_REFERENCES>
$<$<BOOL:${UNITS_LITERALS}>:UNITS_LITERALS>
)
endfunction()