From e59084c540368e68d60befab934f50fe9cbf9af7 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Fri, 15 Sep 2017 11:35:22 +0200 Subject: [PATCH] Added deprecation warning if OPM_COMMON_ROOT is used --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0aad82e3f..b63253980 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,11 @@ endif() if (opm-common_FOUND) include(OpmInit) else() + if(OPM_COMMON_ROOT) + message(WARNING "Setting OPM_COMMON_ROOT is deprecated. Please either " + "set opm-common_DIR instead or rely on sibling build") + endif() + unset(opm-common_FOUND) if (NOT OPM_COMMON_ROOT AND SIBLING_SEARCH)