Added deprecation warning if OPM_COMMON_ROOT is used
This commit is contained in:
parent
355d4e7809
commit
1f8e56311e
@ -53,6 +53,11 @@ endif()
|
|||||||
if (opm-common_FOUND)
|
if (opm-common_FOUND)
|
||||||
include(OpmInit)
|
include(OpmInit)
|
||||||
else()
|
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)
|
unset(opm-common_FOUND)
|
||||||
|
|
||||||
if (NOT OPM_COMMON_ROOT AND SIBLING_SEARCH)
|
if (NOT OPM_COMMON_ROOT AND SIBLING_SEARCH)
|
||||||
|
Loading…
Reference in New Issue
Block a user