Added deprecation warning if OPM_COMMON_ROOT is used

This commit is contained in:
Markus Blatt 2017-09-15 11:35:22 +02:00
parent 355d4e7809
commit 1f8e56311e

View File

@ -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)