Skip to content

Commit 9542e21

Browse files
committed
avoid cmake errors in windows?
1 parent d07890d commit 9542e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ add_library(test-main OBJECT "${CMAKE_CURRENT_SOURCE_DIR}/test-main.cpp")
3434

3535
target_link_libraries(test-main cifpp::cifpp Catch2::Catch2)
3636

37-
if(${Catch2_VERSION} VERSION_GREATER_EQUAL 3.0.0)
38-
target_compile_definitions(test-main PUBLIC CATCH22=0)
39-
else()
37+
if("${Catch2_VERSION}" VERSION_LESS 3.0.0)
4038
target_compile_definitions(test-main PUBLIC CATCH22=1)
39+
else()
40+
target_compile_definitions(test-main PUBLIC CATCH22=0)
4141
endif()
4242

4343
foreach(CIFPP_TEST IN LISTS CIFPP_tests)

0 commit comments

Comments
 (0)