forked from Archive/PX4-Autopilot
Testing: hotfix to recover test coverage CI
CMAKE_TESTING should automatically be enabled but I hoped to do that in the test.cmake target specific options and not in the main CMakeLists. I have to see if I can make that order work. Here the hotfix to make CI work again.
This commit is contained in:
parent
415b366c54
commit
f8db8650d0
|
@ -415,6 +415,9 @@ endif()
|
|||
|
||||
# optionally enable cmake testing (supported only on posix)
|
||||
option(CMAKE_TESTING "Configure test targets" OFF)
|
||||
if (${PX4_CONFIG} STREQUAL "px4_sitl_test")
|
||||
set(CMAKE_TESTING ON)
|
||||
endif()
|
||||
if(CMAKE_TESTING)
|
||||
include(CTest) # sets BUILD_TESTING variable
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue