Commit c39a21f7 authored by Dominik Thoennes's avatar Dominik Thoennes

Add cmake option WALBERLA_LOG_SKIPPED

This option is OFF by default.
If turned on cmake will notify if a target cannot be build due to a missing module.
parent 2eeee982
Pipeline #16536 passed with stages
in 460 minutes and 8 seconds
...@@ -95,11 +95,13 @@ option ( WALBERLA_NO_OUTDATED_FEATURES "Show warning/errors when outdated f ...@@ -95,11 +95,13 @@ option ( WALBERLA_NO_OUTDATED_FEATURES "Show warning/errors when outdated f
"(i.e. features that will be deprecated) are used" ) "(i.e. features that will be deprecated) are used" )
# Profile guided optimization # Profile guided optimization
option ( WALBERLA_PROFILE_GENERATE "Generates Profile for Optimization" ) option ( WALBERLA_PROFILE_GENERATE "Generates Profile for Optimization" )
option ( WALBERLA_PROFILE_USE "Uses Profile to optimize" ) option ( WALBERLA_PROFILE_USE "Uses Profile to optimize" )
# Compiler Optimization # 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 # Installation Directory
set ( CMAKE_INSTALL_PREFIX /usr/local/waLBerla CACHE STRING "The default installation directory." ) set ( CMAKE_INSTALL_PREFIX /usr/local/waLBerla CACHE STRING "The default installation directory." )
......
...@@ -193,7 +193,9 @@ function ( waLBerla_add_executable ) ...@@ -193,7 +193,9 @@ function ( waLBerla_add_executable )
foreach ( depMod ${ARG_DEPENDS} ) foreach ( depMod ${ARG_DEPENDS} )
get_module_library_name ( depModLibraryName ${depMod} ) get_module_library_name ( depModLibraryName ${depMod} )
if( NOT TARGET ${depModLibraryName} ) 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() return()
endif() endif()
endforeach() endforeach()
...@@ -224,7 +226,9 @@ function ( waLBerla_add_executable ) ...@@ -224,7 +226,9 @@ function ( waLBerla_add_executable )
codeGenRequired ${ARG_CODEGEN_CFG} ${sourceFiles} ) codeGenRequired ${ARG_CODEGEN_CFG} ${sourceFiles} )
if( NOT WALBERLA_BUILD_WITH_CODEGEN AND codeGenRequired) 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() return()
endif() endif()
...@@ -376,13 +380,17 @@ function ( waLBerla_execute_test ) ...@@ -376,13 +380,17 @@ function ( waLBerla_execute_test )
endif() endif()
if( NOT ARG_COMMAND AND NOT TARGET ${ARG_NAME} ) 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() return()
endif() endif()
foreach( dependency_target ${ARG_DEPENDS_ON_TARGETS} ) foreach( dependency_target ${ARG_DEPENDS_ON_TARGETS} )
if( NOT TARGET ${dependency_target} ) 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() return()
endif() endif()
endforeach( dependency_target ) 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