CMakeLists.txt: Call enable_testing before processing cunit subdirectory
Otherwise, add_test does nothing.
This commit is contained in:
parent
bbaceb75e2
commit
a9fe22921a
@ -118,8 +118,8 @@ endif()
|
||||
# Build CUnit
|
||||
find_optional_package(CUnit)
|
||||
if(CUNIT_FOUND)
|
||||
add_subdirectory(cunit)
|
||||
enable_testing()
|
||||
add_subdirectory(cunit)
|
||||
endif()
|
||||
|
||||
# Sub-directories
|
||||
|
Loading…
Reference in New Issue
Block a user