Skip to content
Snippets Groups Projects
Commit ba8c1c6c authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[CMake] Added dependency from ctest to its test executable.

This allows for:
cmake ../ogs -DOGS_BUILD_UTILS=ON
make ctest

This will build the required executables bedore running the tests.

Fixes missing executables on clang-sanitizer Jenkins job.
parent a6250034
No related branches found
No related tags found
No related merge requests found
...@@ -185,6 +185,11 @@ function (AddTest) ...@@ -185,6 +185,11 @@ function (AddTest)
-P ${PROJECT_SOURCE_DIR}/scripts/cmake/test/AddTestWrapper.cmake -P ${PROJECT_SOURCE_DIR}/scripts/cmake/test/AddTestWrapper.cmake
) )
if(TARGET ${AddTest_EXECUTABLE})
add_dependencies(ctest ${AddTest_EXECUTABLE})
add_dependencies(ctest-large ${AddTest_EXECUTABLE})
endif()
if(NOT AddTest_TESTER OR OGS_COVERAGE) if(NOT AddTest_TESTER OR OGS_COVERAGE)
return() return()
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment