diff --git a/CMakeLists.txt b/CMakeLists.txt index 3976befc..edede458 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,12 +27,12 @@ target_include_directories( set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include") -include(CTest) if(SPDLOG_BUILD_EXAMPLES) add_subdirectory(example) endif() -if(BUILD_TESTING) +if(SPDLOG_BUILD_TESTING) + include(CTest) add_subdirectory(tests) endif()