forked from OPM/opm-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed: sync with renaming to opm-common
- Loading branch information
Showing
3 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,36 +17,36 @@ | |
cmake_minimum_required (VERSION 2.8) | ||
|
||
# additional search modules | ||
set( OPM_CMAKE_ROOT "" CACHE PATH "Root directory containing OPM related cmake modules") | ||
set( OPM_COMMON_ROOT "" CACHE PATH "Root directory containing OPM related cmake modules") | ||
option(SIBLING_SEARCH "Search for other modules in sibling directories?" ON) | ||
|
||
if(NOT OPM_CMAKE_ROOT) | ||
find_package(opm-cmake QUIET) | ||
if(NOT OPM_COMMON_ROOT) | ||
find_package(opm-common QUIET) | ||
endif() | ||
|
||
if (opm-cmake_FOUND) | ||
if (opm-common_FOUND) | ||
include(OpmInit) | ||
else() | ||
if (NOT OPM_CMAKE_ROOT AND SIBLING_SEARCH) | ||
set(OPM_CMAKE_ROOT ${PROJECT_SOURCE_DIR}/../opm-cmake) | ||
if (NOT OPM_COMMON_ROOT AND SIBLING_SEARCH) | ||
set(OPM_COMMON_ROOT ${PROJECT_SOURCE_DIR}/../opm-common) | ||
endif() | ||
if (OPM_CMAKE_ROOT) | ||
list( APPEND CMAKE_MODULE_PATH "${OPM_CMAKE_ROOT}/cmake/Modules") | ||
if (OPM_COMMON_ROOT) | ||
list( APPEND CMAKE_MODULE_PATH "${OPM_COMMON_ROOT}/cmake/Modules") | ||
include (OpmInit OPTIONAL RESULT_VARIABLE OPM_INIT) | ||
set( OPM_MACROS_ROOT ${OPM_CMAKE_ROOT} ) | ||
set( OPM_MACROS_ROOT ${OPM_COMMON_ROOT} ) | ||
endif() | ||
|
||
if (NOT OPM_INIT) | ||
message( "" ) | ||
message( " /-------------------------------------------------------------------------------\\") | ||
message( " | Could not locate the opm build macros. The opm build macros |") | ||
message( " | are in a separate repository - instructions to proceed: |") | ||
message( " | |") | ||
message( " | 1. Clone the repository: git clone [email protected]:OPM/opm-cmake.git |") | ||
message( " | |") | ||
message( " | 2. Run cmake in the current project with -DOPM_CMAKE_ROOT=<path>/opm-cmake |") | ||
message( " | |") | ||
message( " \\-------------------------------------------------------------------------------/") | ||
message( " /---------------------------------------------------------------------------------\\") | ||
message( " | Could not locate the opm build macros. The opm build macros |") | ||
message( " | are in a separate repository - instructions to proceed: |") | ||
message( " | |") | ||
message( " | 1. Clone the repository: git clone [email protected]:OPM/opm-common.git |") | ||
message( " | |") | ||
message( " | 2. Run cmake in the current project with -DOPM_COMMON_ROOT=<path>/opm-common |") | ||
message( " | |") | ||
message( " \\---------------------------------------------------------------------------------/") | ||
message( "" ) | ||
message( FATAL_ERROR "Could not find OPM Macros") | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ Description: Open Porous Media Initiative Core Library | |
Version: 1.1 | ||
Label: 2013.10 | ||
Maintainer: [email protected] | ||
Depends: dune-common (>= 2.2) dune-istl (>= 2.2) opm-cmake opm-parser opm-material | ||
Depends: dune-common (>= 2.2) dune-istl (>= 2.2) opm-common opm-parser opm-material |