build: Added an option to disable UDLs support
Now it is time to get rid of UDLs from tests and examples and then disable them by default.
This commit is contained in:
1 parent
309da80c32
commit
9054420d08
94 files changed
+371
-13
No files matched your search
@@ -38,3 +38,14 @@ 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})
|
||||
if(UNITS_UDLS)
|
||||
target_compile_definitions(mp-units-${name} INTERFACE UNITS_UDLS=1)
|
||||
endif()
|
||||
endfunction()
|
||||
Reference in new issue
Block a user