Including CTest explicitly

enable_test() seems to include CTest framework in the CMakeLists.txt but
that would result in inconsistencies and CTest framework will not be
able to find DartConfiguration file or MemCheck tool.

Including CTest framework explicitely in the CMakeLists.txt seems to
solve the issue.
pull/9601/head
Hasnain Virk 2019-02-04 14:58:21 +02:00
parent c07410d78c
commit d257d7287f
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ target_include_directories(gmock_main SYSTEM BEFORE INTERFACE
# TESTING
####################
enable_testing()
include(CTest)
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
"${CMAKE_BINARY_DIR}/Testing"