Commit 4f97ea03 authored by Dominik Thoennes's avatar Dominik Thoennes

Merge branch 'mute-cmake-target-skipp' into 'master'

Add cmake option WALBERLA_LOG_SKIPPED

See merge request !219
parents 21981926 39035e03
Pipeline #16905 passed with stages
in 389 minutes
......@@ -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." )
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment