We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07890d commit 9542e21Copy full SHA for 9542e21
test/CMakeLists.txt
@@ -34,10 +34,10 @@ add_library(test-main OBJECT "${CMAKE_CURRENT_SOURCE_DIR}/test-main.cpp")
34
35
target_link_libraries(test-main cifpp::cifpp Catch2::Catch2)
36
37
-if(${Catch2_VERSION} VERSION_GREATER_EQUAL 3.0.0)
38
- target_compile_definitions(test-main PUBLIC CATCH22=0)
39
-else()
+if("${Catch2_VERSION}" VERSION_LESS 3.0.0)
40
target_compile_definitions(test-main PUBLIC CATCH22=1)
+else()
+ target_compile_definitions(test-main PUBLIC CATCH22=0)
41
endif()
42
43
foreach(CIFPP_TEST IN LISTS CIFPP_tests)
0 commit comments