From: maier Date: Sat, 9 Mar 2013 01:22:29 +0000 (+0000) Subject: CMake: Cleanup library search in the examples CMakeLists.txt X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961c9677e42365438d46ccfac0da62c875461fdf;p=dealii-svn.git CMake: Cleanup library search in the examples CMakeLists.txt git-svn-id: https://svn.dealii.org/trunk@28830 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-1/CMakeLists.txt b/deal.II/examples/step-1/CMakeLists.txt index d62201958e..428fc65ec9 100644 --- a/deal.II/examples/step-1/CMakeLists.txt +++ b/deal.II/examples/step-1/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-10/CMakeLists.txt b/deal.II/examples/step-10/CMakeLists.txt index add006ab4c..0a4cb60fbf 100644 --- a/deal.II/examples/step-10/CMakeLists.txt +++ b/deal.II/examples/step-10/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-11/CMakeLists.txt b/deal.II/examples/step-11/CMakeLists.txt index e26fa679f1..402d86fe86 100644 --- a/deal.II/examples/step-11/CMakeLists.txt +++ b/deal.II/examples/step-11/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-12/CMakeLists.txt b/deal.II/examples/step-12/CMakeLists.txt index acd0712cd5..0a6235f8b4 100644 --- a/deal.II/examples/step-12/CMakeLists.txt +++ b/deal.II/examples/step-12/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-13/CMakeLists.txt b/deal.II/examples/step-13/CMakeLists.txt index 464b22c19a..83e7d37088 100644 --- a/deal.II/examples/step-13/CMakeLists.txt +++ b/deal.II/examples/step-13/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-14/CMakeLists.txt b/deal.II/examples/step-14/CMakeLists.txt index 3dffd9c504..dd098e3c05 100644 --- a/deal.II/examples/step-14/CMakeLists.txt +++ b/deal.II/examples/step-14/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-15/CMakeLists.txt b/deal.II/examples/step-15/CMakeLists.txt index 696e6430d3..fa212ca958 100644 --- a/deal.II/examples/step-15/CMakeLists.txt +++ b/deal.II/examples/step-15/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-16/CMakeLists.txt b/deal.II/examples/step-16/CMakeLists.txt index 101dd7b610..23accbb499 100644 --- a/deal.II/examples/step-16/CMakeLists.txt +++ b/deal.II/examples/step-16/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-17/CMakeLists.txt b/deal.II/examples/step-17/CMakeLists.txt index 9359f97da4..f49c226332 100644 --- a/deal.II/examples/step-17/CMakeLists.txt +++ b/deal.II/examples/step-17/CMakeLists.txt @@ -17,26 +17,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF () # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_PETSC OR DEAL_II_WITH_THREADS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-18/CMakeLists.txt b/deal.II/examples/step-18/CMakeLists.txt index 2f2dd88674..a0b84d2c0d 100644 --- a/deal.II/examples/step-18/CMakeLists.txt +++ b/deal.II/examples/step-18/CMakeLists.txt @@ -17,26 +17,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF () # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_PETSC OR DEAL_II_WITH_THREADS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-19/CMakeLists.txt b/deal.II/examples/step-19/CMakeLists.txt index 8ac35f2a54..80fbe46b6c 100644 --- a/deal.II/examples/step-19/CMakeLists.txt +++ b/deal.II/examples/step-19/CMakeLists.txt @@ -19,23 +19,15 @@ SET(TARGET_RUN ";") CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-2/CMakeLists.txt b/deal.II/examples/step-2/CMakeLists.txt index 9ef6d73345..1f6c77d1f6 100644 --- a/deal.II/examples/step-2/CMakeLists.txt +++ b/deal.II/examples/step-2/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-20/CMakeLists.txt b/deal.II/examples/step-20/CMakeLists.txt index ab3b94472c..80f9eff383 100644 --- a/deal.II/examples/step-20/CMakeLists.txt +++ b/deal.II/examples/step-20/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-21/CMakeLists.txt b/deal.II/examples/step-21/CMakeLists.txt index 76e508802c..c25f27fa41 100644 --- a/deal.II/examples/step-21/CMakeLists.txt +++ b/deal.II/examples/step-21/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-22/CMakeLists.txt b/deal.II/examples/step-22/CMakeLists.txt index 9bff0e9186..00923478ae 100644 --- a/deal.II/examples/step-22/CMakeLists.txt +++ b/deal.II/examples/step-22/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_UMFPACK) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-23/CMakeLists.txt b/deal.II/examples/step-23/CMakeLists.txt index 83cb5b8722..d1a264462d 100644 --- a/deal.II/examples/step-23/CMakeLists.txt +++ b/deal.II/examples/step-23/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-24/CMakeLists.txt b/deal.II/examples/step-24/CMakeLists.txt index ac3cea3475..d6b05d9c29 100644 --- a/deal.II/examples/step-24/CMakeLists.txt +++ b/deal.II/examples/step-24/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-25/CMakeLists.txt b/deal.II/examples/step-25/CMakeLists.txt index ef358ee508..40880a12c3 100644 --- a/deal.II/examples/step-25/CMakeLists.txt +++ b/deal.II/examples/step-25/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-26/CMakeLists.txt b/deal.II/examples/step-26/CMakeLists.txt index 3979e168fa..9b68681f1e 100644 --- a/deal.II/examples/step-26/CMakeLists.txt +++ b/deal.II/examples/step-26/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-27/CMakeLists.txt b/deal.II/examples/step-27/CMakeLists.txt index ddb04c0606..ca6124d2b1 100644 --- a/deal.II/examples/step-27/CMakeLists.txt +++ b/deal.II/examples/step-27/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-28/CMakeLists.txt b/deal.II/examples/step-28/CMakeLists.txt index 92218ed6d3..061aec950d 100644 --- a/deal.II/examples/step-28/CMakeLists.txt +++ b/deal.II/examples/step-28/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-29/CMakeLists.txt b/deal.II/examples/step-29/CMakeLists.txt index fe49ff7e95..14a0f1000d 100644 --- a/deal.II/examples/step-29/CMakeLists.txt +++ b/deal.II/examples/step-29/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_UMFPACK) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-3/CMakeLists.txt b/deal.II/examples/step-3/CMakeLists.txt index e87517ad5a..e6a829260b 100644 --- a/deal.II/examples/step-3/CMakeLists.txt +++ b/deal.II/examples/step-3/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-30/CMakeLists.txt b/deal.II/examples/step-30/CMakeLists.txt index 0c2558da4c..777a189f0a 100644 --- a/deal.II/examples/step-30/CMakeLists.txt +++ b/deal.II/examples/step-30/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-31/CMakeLists.txt b/deal.II/examples/step-31/CMakeLists.txt index 784f8cf8fc..645efcfc55 100644 --- a/deal.II/examples/step-31/CMakeLists.txt +++ b/deal.II/examples/step-31/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_TRILINOS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-32/CMakeLists.txt b/deal.II/examples/step-32/CMakeLists.txt index cdcbbef899..4e68fdb217 100644 --- a/deal.II/examples/step-32/CMakeLists.txt +++ b/deal.II/examples/step-32/CMakeLists.txt @@ -22,27 +22,19 @@ SET(CLEAN_UP_FILES *.vtu *.pvtu *.visit) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF( NOT DEAL_II_WITH_MPI OR NOT DEAL_II_WITH_P4EST OR NOT DEAL_II_WITH_TRILINOS ) diff --git a/deal.II/examples/step-33/CMakeLists.txt b/deal.II/examples/step-33/CMakeLists.txt index 63c7507a99..3264dbd6c8 100644 --- a/deal.II/examples/step-33/CMakeLists.txt +++ b/deal.II/examples/step-33/CMakeLists.txt @@ -19,27 +19,19 @@ SET(TARGET_RUN ${TARGET} input.prm) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_TRILINOS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-34/CMakeLists.txt b/deal.II/examples/step-34/CMakeLists.txt index 0c52f0f7f7..9f2b2ca256 100644 --- a/deal.II/examples/step-34/CMakeLists.txt +++ b/deal.II/examples/step-34/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_FUNCTIONPARSER) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-35/CMakeLists.txt b/deal.II/examples/step-35/CMakeLists.txt index 604be2d05d..416238fcba 100644 --- a/deal.II/examples/step-35/CMakeLists.txt +++ b/deal.II/examples/step-35/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_UMFPACK) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-36/CMakeLists.txt b/deal.II/examples/step-36/CMakeLists.txt index 60c1f180a6..cabd34cc91 100644 --- a/deal.II/examples/step-36/CMakeLists.txt +++ b/deal.II/examples/step-36/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_PETSC OR NOT DEAL_II_WITH_SLEPC OR DEAL_II_WITH_THREADS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-37/CMakeLists.txt b/deal.II/examples/step-37/CMakeLists.txt index 8f1ac34ce9..4b4e8f3f32 100644 --- a/deal.II/examples/step-37/CMakeLists.txt +++ b/deal.II/examples/step-37/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_LAPACK) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-38/CMakeLists.txt b/deal.II/examples/step-38/CMakeLists.txt index 39b884ee0f..0a84a6cbf5 100644 --- a/deal.II/examples/step-38/CMakeLists.txt +++ b/deal.II/examples/step-38/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-39/CMakeLists.txt b/deal.II/examples/step-39/CMakeLists.txt index bba2a8d94b..dbe711b3c8 100644 --- a/deal.II/examples/step-39/CMakeLists.txt +++ b/deal.II/examples/step-39/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-4/CMakeLists.txt b/deal.II/examples/step-4/CMakeLists.txt index 27ac8066e5..90d8b42e61 100644 --- a/deal.II/examples/step-4/CMakeLists.txt +++ b/deal.II/examples/step-4/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-40/CMakeLists.txt b/deal.II/examples/step-40/CMakeLists.txt index bb2d515b40..65ebf1d444 100644 --- a/deal.II/examples/step-40/CMakeLists.txt +++ b/deal.II/examples/step-40/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_PETSC OR NOT DEAL_II_WITH_P4EST OR DEAL_II_WITH_THREADS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-41/CMakeLists.txt b/deal.II/examples/step-41/CMakeLists.txt index 3a447e0d92..c4e08a8cf3 100644 --- a/deal.II/examples/step-41/CMakeLists.txt +++ b/deal.II/examples/step-41/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_TRILINOS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-42/CMakeLists.txt b/deal.II/examples/step-42/CMakeLists.txt index 3a31e1a5b4..be2cd897e6 100644 --- a/deal.II/examples/step-42/CMakeLists.txt +++ b/deal.II/examples/step-42/CMakeLists.txt @@ -22,27 +22,19 @@ SET(CLEAN_UP_FILES *.vtu *.pvtu *.visit) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF( NOT DEAL_II_WITH_MPI OR NOT DEAL_II_WITH_P4EST OR NOT DEAL_II_WITH_TRILINOS ) diff --git a/deal.II/examples/step-43/CMakeLists.txt b/deal.II/examples/step-43/CMakeLists.txt index 8f82a97715..96f94caed0 100644 --- a/deal.II/examples/step-43/CMakeLists.txt +++ b/deal.II/examples/step-43/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_TRILINOS) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-44/CMakeLists.txt b/deal.II/examples/step-44/CMakeLists.txt index 7594980081..323dba1d27 100644 --- a/deal.II/examples/step-44/CMakeLists.txt +++ b/deal.II/examples/step-44/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-45/CMakeLists.txt b/deal.II/examples/step-45/CMakeLists.txt index ac4bf35a01..833b880de3 100644 --- a/deal.II/examples/step-45/CMakeLists.txt +++ b/deal.II/examples/step-45/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-46/CMakeLists.txt b/deal.II/examples/step-46/CMakeLists.txt index 5ef75f4034..a2c8f5fbc5 100644 --- a/deal.II/examples/step-46/CMakeLists.txt +++ b/deal.II/examples/step-46/CMakeLists.txt @@ -16,27 +16,19 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() # # Are all dependencies fullfilled? # -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () - IF(NOT DEAL_II_WITH_UMFPACK) MESSAGE(FATAL_ERROR " Error! The deal.II library found at ${DEAL_II_PATH} was not configured with diff --git a/deal.II/examples/step-47/CMakeLists.txt b/deal.II/examples/step-47/CMakeLists.txt index 22e3ee3875..0321ee6c15 100644 --- a/deal.II/examples/step-47/CMakeLists.txt +++ b/deal.II/examples/step-47/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-48/CMakeLists.txt b/deal.II/examples/step-48/CMakeLists.txt index b0247247c4..de84ad3c41 100644 --- a/deal.II/examples/step-48/CMakeLists.txt +++ b/deal.II/examples/step-48/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-49/CMakeLists.txt b/deal.II/examples/step-49/CMakeLists.txt index 85adc0a39b..3823d4ee9e 100644 --- a/deal.II/examples/step-49/CMakeLists.txt +++ b/deal.II/examples/step-49/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-5/CMakeLists.txt b/deal.II/examples/step-5/CMakeLists.txt index b1528657d3..90b5c71779 100644 --- a/deal.II/examples/step-5/CMakeLists.txt +++ b/deal.II/examples/step-5/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-6/CMakeLists.txt b/deal.II/examples/step-6/CMakeLists.txt index 4b319ec6f5..834f0b52d3 100644 --- a/deal.II/examples/step-6/CMakeLists.txt +++ b/deal.II/examples/step-6/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-7/CMakeLists.txt b/deal.II/examples/step-7/CMakeLists.txt index 91982149cf..e2efb44271 100644 --- a/deal.II/examples/step-7/CMakeLists.txt +++ b/deal.II/examples/step-7/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-8/CMakeLists.txt b/deal.II/examples/step-8/CMakeLists.txt index 4d31cb0fc5..ecffed5bf6 100644 --- a/deal.II/examples/step-8/CMakeLists.txt +++ b/deal.II/examples/step-8/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) diff --git a/deal.II/examples/step-9/CMakeLists.txt b/deal.II/examples/step-9/CMakeLists.txt index 3e2b5e5bbe..6d64c9f6ae 100644 --- a/deal.II/examples/step-9/CMakeLists.txt +++ b/deal.II/examples/step-9/CMakeLists.txt @@ -16,23 +16,15 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 QUIET - HINTS - ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} - # - # If the deal.II library cannot be found (because it is not installed at a - # default location or your project resides at an uncommon place), you - # can specify additional hints for search paths here, e.g. - # "$ENV{HOME}/workspace/deal.II" + HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) - -IF (NOT ${deal.II_FOUND}) - MESSAGE(FATAL_ERROR - "\n\n" - " *** Could not locate deal.II. *** " - "\n\n" - " *** You may want to either pass the -DDEAL_II_DIR=/path/to/deal.II flag to cmake \n" - " *** or set an environment variable \"DEAL_II_DIR\" that contains this path.") -ENDIF () +IF(NOT ${deal.II_FOUND}) + MESSAGE(FATAL_ERROR "\n" + "*** Could not locate deal.II. ***\n\n" + "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n" + "or set an environment variable \"DEAL_II_DIR\" that contains this path." + ) +ENDIF() DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET})