diff --git a/CMakeLists.txt b/CMakeLists.txt index 43eeac514..57468f623 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -456,13 +456,13 @@ install(TARGETS pagmo # Setup of the optional deps. set(_PAGMO_CONFIG_OPTIONAL_DEPS) if(PAGMO_WITH_EIGEN3) - set(_PAGMO_CONFIG_OPTIONAL_DEPS "${_PAGMO_CONFIG_OPTIONAL_DEPS}find_package(Eigen3 3.3 REQUIRED NO_MODULE)\n") + set(_PAGMO_CONFIG_OPTIONAL_DEPS "${_PAGMO_CONFIG_OPTIONAL_DEPS}find_package(Eigen3 3.3 QUIET REQUIRED NO_MODULE)\n") endif() if(PAGMO_WITH_NLOPT) - set(_PAGMO_CONFIG_OPTIONAL_DEPS "${_PAGMO_CONFIG_OPTIONAL_DEPS}find_package(NLopt 2.6 REQUIRED NO_MODULE)\n") + set(_PAGMO_CONFIG_OPTIONAL_DEPS "${_PAGMO_CONFIG_OPTIONAL_DEPS}find_package(NLopt 2.6 QUIET REQUIRED NO_MODULE)\n") endif() if(PAGMO_WITH_IPOPT) - set(_PAGMO_CONFIG_OPTIONAL_DEPS "${_PAGMO_CONFIG_OPTIONAL_DEPS}find_package(pagmo_IPOPT REQUIRED COMPONENTS header)\n") + set(_PAGMO_CONFIG_OPTIONAL_DEPS "${_PAGMO_CONFIG_OPTIONAL_DEPS}find_package(pagmo_IPOPT QUIET REQUIRED COMPONENTS header)\n") endif() configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pagmo-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/pagmo-config.cmake" @ONLY) diff --git a/pagmo-config.cmake.in b/pagmo-config.cmake.in index 9553fc846..556a48a7c 100644 --- a/pagmo-config.cmake.in +++ b/pagmo-config.cmake.in @@ -5,7 +5,7 @@ get_filename_component(_PAGMO_CONFIG_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) set(_PAGMO_CONFIG_OLD_MODULE_PATH "${CMAKE_MODULE_PATH}") list(APPEND CMAKE_MODULE_PATH "${_PAGMO_CONFIG_SELF_DIR}") set(THREADS_PREFER_PTHREAD_FLAG YES) -find_package(Threads REQUIRED) +find_package(Threads QUIET REQUIRED) unset(THREADS_PREFER_PTHREAD_FLAG) include(PagmoFindBoost) @_PAGMO_CONFIG_OPTIONAL_DEPS@