From 58e983167c987670b18c91ebd557aff35b4acd1e Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 11 Sep 2023 14:54:59 +0300 Subject: [PATCH] Removed debug information from CMakeLists.txt --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)