Skip to content

Commit

Permalink
[Test] fix ALPAQA_FORCE_TEST_DISCOVERY CMake option
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Apr 2, 2024
1 parent 7d763a5 commit 5bea076
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ if (TARGET alpaqa::casadi-loader)
$<TARGET_FILE_DIR:rosenbrock_functions_test>)
endif()

option(ALPAQA_FORCE_TEST_DISCOVERY Off)
option(ALPAQA_FORCE_TEST_DISCOVERY
"Query the test executable even when cross-compiling" Off)
if (NOT CMAKE_CROSSCOMPILING OR ALPAQA_FORCE_TEST_DISCOVERY)
gtest_discover_tests(tests DISCOVERY_TIMEOUT 60)
endif()
Expand Down

0 comments on commit 5bea076

Please sign in to comment.