Skip to content

Commit

Permalink
only build test if error checks are on
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Dec 6, 2023
1 parent d191715 commit 943f478
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/unit_tests/sundials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
# SUNDIALS Copyright End
# ---------------------------------------------------------------

add_executable(test_sundials_errors test_sundials_errors.cpp)
target_link_libraries(test_sundials_errors PRIVATE sundials_core sundials_nvecserial GTest::gtest_main GTest::gmock)
gtest_discover_tests(test_sundials_errors)
if(SUNDIALS_ENABLE_ERROR_CHECKS)
add_executable(test_sundials_errors test_sundials_errors.cpp)
target_link_libraries(test_sundials_errors
PRIVATE sundials_core sundials_nvecserial GTest::gtest_main GTest::gmock)
gtest_discover_tests(test_sundials_errors)
endif()

add_subdirectory(reductions)

0 comments on commit 943f478

Please sign in to comment.