Skip to content

Commit

Permalink
fixup: version detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Sep 30, 2024
1 parent cc5f629 commit 3083325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ endif()
# Without main from Catch2
target_link_libraries(testnmodl PRIVATE Catch2::Catch2)

if(Catch2_VERSION VERSION_LESS 3)
target_compile_definitions(testnmodl PRIVATE NMODL_CATCH2_VERSION_MAJOR=2)
else()
if(NMODL_3RDPARTY_USE_CATCH2)
target_compile_definitions(testnmodl PRIVATE NMODL_CATCH2_VERSION_MAJOR=3)
else()
target_compile_definitions(testnmodl PRIVATE NMODL_CATCH2_VERSION_MAJOR=${Catch2_VERSION_MAJOR})
endif()

cpp_cc_configure_sanitizers(TARGET testnmodl)
Expand Down

0 comments on commit 3083325

Please sign in to comment.