build: got rid of global options for references and literals
This commit is contained in:
1 parent
b3b52148c0
commit
512406e900
15 files changed
+10
-76
No files matched your search
@@ -55,11 +55,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(mp-units-core INTERFACE
|
||||
$<$<BOOL:${UNITS_REFERENCES}>:UNITS_REFERENCES>
|
||||
$<$<BOOL:${UNITS_LITERALS}>:UNITS_LITERALS>
|
||||
)
|
||||
|
||||
if(DEFINED UNITS_DOWNCAST_MODE)
|
||||
set(downcast_mode_options OFF ON AUTO)
|
||||
list(FIND downcast_mode_options "${UNITS_DOWNCAST_MODE}" downcast_mode)
|
||||
|
||||
Reference in new issue
Block a user