Skip to content

Commit d257d72

Browse files
author
Hasnain Virk
committed
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.
1 parent c07410d commit d257d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNITTESTS/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ target_include_directories(gmock_main SYSTEM BEFORE INTERFACE
5959
# TESTING
6060
####################
6161

62-
enable_testing()
62+
include(CTest)
6363

6464
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
6565
"${CMAKE_BINARY_DIR}/Testing"

0 commit comments

Comments
 (0)