From a6a8170b50fbd786f843053fa77593171cbf7665 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 7 Mar 2013 10:45:36 +0100 Subject: [PATCH] Use keyword supported by older version of CMake The CONFIG keyword to find_package () was introduced in 2.8.8 while NO_MODULE works for the entire 2.8.x series. --- cmake/Modules/OpmFind.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/OpmFind.cmake b/cmake/Modules/OpmFind.cmake index d5c18f57..a5e77841 100644 --- a/cmake/Modules/OpmFind.cmake +++ b/cmake/Modules/OpmFind.cmake @@ -76,7 +76,7 @@ macro (find_and_append_package_to prefix name) # stored them in the config file for us if (${name}_DIR) message (STATUS "Finding package ${name} using config mode") - find_package (${name} ${ARGN} CONFIG PATHS ${${name}_DIR} NO_DEFAULT_PATH) + find_package (${name} ${ARGN} NO_MODULE PATHS ${${name}_DIR} NO_DEFAULT_PATH) else (${name}_DIR) message (STATUS "Finding package ${name} using module mode") find_package (${name} ${ARGN})