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:22:24 +02:00
parent 9a0f0a944c
commit 1ac43da951

View File

@ -26,6 +26,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()