Skip to content
Snippets Groups Projects
Commit eb83ac82 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Merge branch 'cleanup/cmake-reduce-verbosity-module-deps' into 'master'

[cmake][cleanup] Reduce output for cmake tests from module deps

See merge request !1061
parents a93e0b55 d05649c0
No related branches found
No related tags found
1 merge request!1061[cmake][cleanup] Reduce output for cmake tests from module deps
Pipeline #41562 passed
Pipeline: Dune Nightly Test

#41563

    ......@@ -99,17 +99,20 @@ macro(dune_process_dependency_macros)
    dune_module_to_macro(_cmake_mod_name "${_mod}")
    set(_macro "${_cmake_mod_name}Macros")
    set(_mod_cmake _mod_cmake-NOTFOUND) # Prevent false positives due to caching
    message(STATUS "Searching for macro file '${_macro}' for module '${_mod}'.")
    find_file(_mod_cmake
    NAMES "${_macro}.cmake"
    PATHS ${CMAKE_MODULE_PATH}
    NO_DEFAULT_PATH
    NO_CMAKE_FIND_ROOT_PATH)
    if(_mod_cmake)
    message(STATUS "Performing tests specific to ${_mod} from file ${_mod_cmake}.")
    message(STATUS "Performing tests for ${_mod} (from ${_mod_cmake})")
    include(${_mod_cmake})
    else()
    message(STATUS "No module specific tests performed for module '${_mod}' because macro file '${_macro}.cmake' not found in ${CMAKE_MODULE_PATH}.")
    # only print output for found module dependencies
    # otherwise it's obvious that we cannot find a ModuleMacros.cmake file
    if (${${_mod}_FOUND}})
    message(STATUS "No module specific tests for module '${_mod}' ('${_macro}.cmake' not found)")
    endif()
    endif()
    dune_module_to_uppercase(_upper_case "${_mod}")
    if(${_mod}_INCLUDE_DIRS)
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment