refactor: UDLs support switched off by default
This commit is contained in:
1 parent
5fc7e01d19
commit
1a5b4fc85e
17 files changed
+144
-142
No files matched your search
@@ -35,6 +35,7 @@ target_link_libraries(unit_tests_runtime PRIVATE
|
||||
mp-units::mp-units
|
||||
Catch2::Catch2
|
||||
)
|
||||
target_compile_definitions(unit_tests_runtime PRIVATE UNITS_UDLS=1)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
target_compile_options(unit_tests_runtime PRIVATE
|
||||
|
||||
@@ -37,6 +37,7 @@ target_link_libraries(unit_tests_static_truncating PRIVATE
|
||||
target_compile_options(unit_tests_static_truncating PRIVATE
|
||||
$<IF:$<CXX_COMPILER_ID:MSVC>,/wd4242 /wd4244,-Wno-conversion>
|
||||
)
|
||||
target_compile_definitions(unit_tests_static_truncating PRIVATE UNITS_UDLS=1)
|
||||
|
||||
add_library(unit_tests_static
|
||||
cgs_test.cpp
|
||||
@@ -73,3 +74,4 @@ target_link_libraries(unit_tests_static PRIVATE
|
||||
unit_tests_static_truncating
|
||||
mp-units::mp-units
|
||||
)
|
||||
target_compile_definitions(unit_tests_static PRIVATE UNITS_UDLS=1)
|
||||
Reference in new issue
Block a user