diff --git a/CMakeLists.txt b/CMakeLists.txt index 65157e23f67017e850658c2a7679834e05189719..6de20290cdb6eed443d70b9fe3a06974bf91dd7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,11 +95,13 @@ option ( WALBERLA_NO_OUTDATED_FEATURES "Show warning/errors when outdated f "(i.e. features that will be deprecated) are used" ) # Profile guided optimization -option ( WALBERLA_PROFILE_GENERATE "Generates Profile for Optimization" ) -option ( WALBERLA_PROFILE_USE "Uses Profile to optimize" ) +option ( WALBERLA_PROFILE_GENERATE "Generates Profile for Optimization" ) +option ( WALBERLA_PROFILE_USE "Uses Profile to optimize" ) # Compiler Optimization -option ( WALBERLA_OPTIMIZE_FOR_LOCALHOST "Enable compiler optimizations spcific to localhost" ) +option ( WALBERLA_OPTIMIZE_FOR_LOCALHOST "Enable compiler optimizations spcific to localhost" ) + +option ( WALBERLA_LOG_SKIPPED "Log skipped cmake targets" ON ) # Installation Directory set ( CMAKE_INSTALL_PREFIX /usr/local/waLBerla CACHE STRING "The default installation directory." ) diff --git a/cmake/waLBerlaFunctions.cmake b/cmake/waLBerlaFunctions.cmake index 091a9048bb9106c755d9aaf72fa3f96fc24bc2b3..841051458b2901be296cade1ad025c0e2b500757 100644 --- a/cmake/waLBerlaFunctions.cmake +++ b/cmake/waLBerlaFunctions.cmake @@ -193,7 +193,9 @@ function ( waLBerla_add_executable ) foreach ( depMod ${ARG_DEPENDS} ) get_module_library_name ( depModLibraryName ${depMod} ) if( NOT TARGET ${depModLibraryName} ) - message ( STATUS "Skipping ${ARG_NAME} since dependent module ${depMod} was not built" ) + if( WALBERLA_LOG_SKIPPED ) + message ( STATUS "Skipping ${ARG_NAME} since dependent module ${depMod} was not built" ) + endif() return() endif() endforeach() @@ -224,7 +226,9 @@ function ( waLBerla_add_executable ) codeGenRequired ${ARG_CODEGEN_CFG} ${sourceFiles} ) if( NOT WALBERLA_BUILD_WITH_CODEGEN AND codeGenRequired) - message(STATUS "Skipping ${ARG_NAME} since pystencils code generation is not enabled") + if( WALBERLA_LOG_SKIPPED ) + message(STATUS "Skipping ${ARG_NAME} since pystencils code generation is not enabled") + endif() return() endif() @@ -383,13 +387,17 @@ function ( waLBerla_execute_test ) endif() if( NOT ARG_COMMAND AND NOT TARGET ${ARG_NAME} ) - message ( STATUS "Skipping test ${ARG_NAME} since the corresponding target is not built" ) + if( WALBERLA_LOG_SKIPPED ) + message ( STATUS "Skipping test ${ARG_NAME} since the corresponding target is not built" ) + endif() return() endif() foreach( dependency_target ${ARG_DEPENDS_ON_TARGETS} ) if( NOT TARGET ${dependency_target} ) - message ( STATUS "Skipping test ${ARG_NAME} since the target ${dependency_target} is not built" ) + if( WALBERLA_LOG_SKIPPED ) + message ( STATUS "Skipping test ${ARG_NAME} since the target ${dependency_target} is not built" ) + endif() return() endif() endforeach( dependency_target )