Skip to content

Commit

Permalink
Added warning if opm-common_DIR is not an existing directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
blattms committed Sep 25, 2017
1 parent d46c0ed commit 7b7e2fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ if(NOT OPM_COMMON_ROOT)
set(opm-common_DIR "${_parent_full_dir}/opm-common}")
endif()
endif()
else()
if(NOT IS_DIRECTORY ${opm-common_DIR})
message(WARNING "Value ${opm-common_DIR} passed to variable"
" opm-common_DIR is not a directory")
endif()
endif()
find_package(opm-common QUIET)
endif()
Expand Down

0 comments on commit 7b7e2fc

Please sign in to comment.