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 b2c6092127
commit e59084c540

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)