diff --git a/CMakeLists.txt b/CMakeLists.txt index 65157e23f67017e850658c2a7679834e05189719..4a14b6194bbf75e5e776fb61a3e05fe79d670458 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" OFF) # 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 3de113afac0545faed736328fb79f84d1aa35b79..bcd4f3ea1c28d10242a8b3d9cfc484bae08452e9 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() @@ -376,13 +380,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 )