Skip to content

Commit

Permalink
Make building tests an option
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienPean committed Dec 11, 2022
1 parent 9682288 commit bdce0f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ endif()
############################
# TEST
############################
if(TESTS)
function(build_tests)
enable_testing()

set(CMAKE_CTEST_COMMAND ctest -V)
Expand Down Expand Up @@ -783,6 +783,10 @@ if(TESTS)
add_test(icb_parpack_cpp_tst mpirun -n 2 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/icb_parpack_cpp)
endif()
endif()
endfunction(build_tests)

if(TESTS)
build_tests()
endif()

############################
Expand Down

0 comments on commit bdce0f6

Please sign in to comment.