fixed: make sure opm-common can be (re-)found

see https://github.com/OPM/opm-common/issues/40#issuecomment-140720316
This commit is contained in:
Arne Morten Kvarving 2015-09-16 14:23:50 +02:00
parent 44c3c91f7b
commit bad039289f

View File

@ -27,6 +27,8 @@ endif()
if (opm-common_FOUND)
include(OpmInit)
else()
unset(opm-common_FOUND)
if (NOT OPM_COMMON_ROOT AND SIBLING_SEARCH)
set(OPM_COMMON_ROOT ${PROJECT_SOURCE_DIR}/../opm-common)
endif()