Skip to content
Snippets Groups Projects
Commit c39a21f7 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

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
No related merge requests found
......@@ -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." )
......
......@@ -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 )
......
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