From ae74c7c38f2110bb75ea293713b2677c29679414 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Mon, 19 Aug 2019 13:59:11 +0200 Subject: [PATCH] DD4hepBuild: boost: use dd4hep_print or debug --- cmake/DD4hepBuild.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake/DD4hepBuild.cmake b/cmake/DD4hepBuild.cmake index 938d88629..6bcbe5c05 100644 --- a/cmake/DD4hepBuild.cmake +++ b/cmake/DD4hepBuild.cmake @@ -1312,23 +1312,26 @@ MACRO(DD4HEP_SETUP_BOOST_TARGETS) # Try to compile with filesystem header linking against different FS libraries SET(HAVE_FILESYSTEM False) + dd4hep_debug("|++> Checking if compiler supports filesystem library") FOREACH(FS_LIB_NAME stdc++fs c++fs ) + dd4hep_debug("|++++> linking against ${FS_LIB_NAME}") try_compile(HAVE_FILESYSTEM ${CMAKE_BINARY_DIR}/try ${CMAKE_SOURCE_DIR}/cmake/TryFileSystem.cpp CXX_STANDARD ${CMAKE_CXX_STANDARD} CXX_EXTENSIONS False OUTPUT_VARIABLE HAVE_FS_OUTPUT LINK_LIBRARIES ${FS_LIB_NAME} ) - dd4hep_print("|++> ${HAVE_FS_OUTPUT}") + dd4hep_debug("|++++> ${HAVE_FS_OUTPUT}") IF(HAVE_FILESYSTEM) - MESSAGE(STATUS "Compiler supports filesystem, linking against ${FS_LIB_NAME}") + dd4hep_print("|++> Compiler supports filesystem, linking against ${FS_LIB_NAME}") SET(FS_LIBRARIES ${FS_LIB_NAME}) BREAK() ENDIF() + dd4hep_debug("|++++> Compiler not compatible when linking against ${FS_LIB_NAME}") ENDFOREACH() IF(NOT HAVE_FILESYSTEM) - MESSAGE(STATUS "Compiler does not have filesystem support, falling back to Boost::filesystem") + dd4hep_print("|++> Compiler does not have filesystem support, falling back to Boost::filesystem") FIND_PACKAGE(Boost 1.49 REQUIRED COMPONENTS filesystem system) SET(FS_LIBRARIES Boost::filesystem Boost::system) SET_TARGET_PROPERTIES(Boost::filesystem -- GitLab