Got rid of false warning for empty opm_common_DIR.

This commit is contained in:
Markus Blatt 2017-09-26 16:16:41 +02:00
parent 54acb69d7a
commit 03a94c1cde

View File

@ -42,11 +42,10 @@ if(SIBLING_SEARCH AND NOT opm-common_DIR)
set(opm-common_DIR "${_parent_full_dir}/opm-common}") set(opm-common_DIR "${_parent_full_dir}/opm-common}")
endif() endif()
endif() endif()
else() endif()
if(NOT IS_DIRECTORY ${opm-common_DIR}) if(opm-common_DIR AND NOT IS_DIRECTORY ${opm-common_DIR})
message(WARNING "Value ${opm-common_DIR} passed to variable" message(WARNING "Value ${opm-common_DIR} passed to variable"
" opm-common_DIR is not a directory") " opm-common_DIR is not a directory")
endif()
endif() endif()
find_package(opm-common REQUIRED) find_package(opm-common REQUIRED)