diff --git a/CMakeLists.txt b/CMakeLists.txt index 5caab4f..063289c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,9 +35,11 @@ endif() if(CMAKE_CXX_STANDARD LESS 11) message(FATAL_ERROR "CMAKE_CXX_STANDARD is less than 11, ghc::filesystem only works with C++11 and above.") endif() -message(STATUS "System name: ${CMAKE_SYSTEM_NAME}") -message(STATUS "Compiler ID: ${CMAKE_CXX_COMPILER_ID}") -message(STATUS "CMAKE_CXX_COMPILE_FEATURES: ${CMAKE_CXX_COMPILE_FEATURES}") +if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) + message(STATUS "System name: ${CMAKE_SYSTEM_NAME}") + message(STATUS "Compiler ID: ${CMAKE_CXX_COMPILER_ID}") + message(STATUS "CMAKE_CXX_COMPILE_FEATURES: ${CMAKE_CXX_COMPILE_FEATURES}") +endif() add_library(ghc_filesystem INTERFACE) add_library(ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)