diff --git a/CMakeLists.txt b/CMakeLists.txt index f284e6903..f786de682 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,7 @@ endif() if(PATOMIC_BUILD_TESTING) # need to enable testing in case BUILD_TESTING is disabled + # CTest expects that the top level project enables testing if(PROJECT_IS_TOP_LEVEL) enable_testing() endif()