Suppress message "finding .. using module mode" for OPM modules.

This commit is contained in:
Markus Blatt
2017-10-10 12:42:49 +02:00
parent 7c779697c7
commit fc4bac6b7a

View File

@@ -144,7 +144,10 @@ macro (find_and_append_package_to prefix name)
message (STATUS "Finding package ${name} using config mode")
find_package (${name} ${ARGN} NO_MODULE PATHS ${${name}_DIR} NO_DEFAULT_PATH)
else ()
message (STATUS "Finding package ${name} using module mode")
# print message if this neither an opm module nor ecl
if (NOT _${name}_exempted EQUAL -1)
message (STATUS "Finding package ${name} using module mode")
endif()
if(${name} STREQUAL "ecl")
# Give us a chance to find ecl installed to CMAKE_INSTALL_PREFIX.
# We need to deactivate the package registry for this.