From b3c2caa5c2562e38025b018dd29ef87d5239b657 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 10 Jan 2013 23:21:47 +0000 Subject: [PATCH] Provide a better error message when not being able to find deal.II. git-svn-id: https://svn.dealii.org/branches/branch_cmake@28006 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-1/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-10/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-11/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-12/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-13/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-14/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-15/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-16/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-17/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-18/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-19/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-2/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-20/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-21/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-22/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-23/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-24/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-25/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-26/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-27/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-28/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-29/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-3/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-30/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-31/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-32/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-33/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-34/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-35/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-36/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-37/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-38/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-39/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-4/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-40/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-41/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-42/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-43/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-44/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-45/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-46/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-47/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-48/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-5/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-6/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-7/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-8/CMakeLists.txt | 11 ++++++++++- deal.II/examples/step-9/CMakeLists.txt | 11 ++++++++++- 48 files changed, 480 insertions(+), 48 deletions(-) diff --git a/deal.II/examples/step-1/CMakeLists.txt b/deal.II/examples/step-1/CMakeLists.txt index 18f1453cb9..56af0709ef 100644 --- a/deal.II/examples/step-1/CMakeLists.txt +++ b/deal.II/examples/step-1/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-10/CMakeLists.txt b/deal.II/examples/step-10/CMakeLists.txt index 5c37b12fee..ddb2753b1b 100644 --- a/deal.II/examples/step-10/CMakeLists.txt +++ b/deal.II/examples/step-10/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-11/CMakeLists.txt b/deal.II/examples/step-11/CMakeLists.txt index e447b167ae..5219617c41 100644 --- a/deal.II/examples/step-11/CMakeLists.txt +++ b/deal.II/examples/step-11/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-12/CMakeLists.txt b/deal.II/examples/step-12/CMakeLists.txt index 31256ced7e..5b53020048 100644 --- a/deal.II/examples/step-12/CMakeLists.txt +++ b/deal.II/examples/step-12/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-13/CMakeLists.txt b/deal.II/examples/step-13/CMakeLists.txt index e9764983af..5cc6caca88 100644 --- a/deal.II/examples/step-13/CMakeLists.txt +++ b/deal.II/examples/step-13/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-14/CMakeLists.txt b/deal.II/examples/step-14/CMakeLists.txt index 1057c044de..40bc9ff3e3 100644 --- a/deal.II/examples/step-14/CMakeLists.txt +++ b/deal.II/examples/step-14/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-15/CMakeLists.txt b/deal.II/examples/step-15/CMakeLists.txt index 28bd31d331..f50018c159 100644 --- a/deal.II/examples/step-15/CMakeLists.txt +++ b/deal.II/examples/step-15/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-16/CMakeLists.txt b/deal.II/examples/step-16/CMakeLists.txt index 3a817b7eb6..8c4af180e8 100644 --- a/deal.II/examples/step-16/CMakeLists.txt +++ b/deal.II/examples/step-16/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-17/CMakeLists.txt b/deal.II/examples/step-17/CMakeLists.txt index b3b3a5dd7a..822ab605db 100644 --- a/deal.II/examples/step-17/CMakeLists.txt +++ b/deal.II/examples/step-17/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -37,6 +37,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-18/CMakeLists.txt b/deal.II/examples/step-18/CMakeLists.txt index d00ae38eb1..8334072baa 100644 --- a/deal.II/examples/step-18/CMakeLists.txt +++ b/deal.II/examples/step-18/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -37,6 +37,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-19/CMakeLists.txt b/deal.II/examples/step-19/CMakeLists.txt index ed0b2981ba..af71fcae08 100644 --- a/deal.II/examples/step-19/CMakeLists.txt +++ b/deal.II/examples/step-19/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-2/CMakeLists.txt b/deal.II/examples/step-2/CMakeLists.txt index 2a49bc0682..2a8996a4ff 100644 --- a/deal.II/examples/step-2/CMakeLists.txt +++ b/deal.II/examples/step-2/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-20/CMakeLists.txt b/deal.II/examples/step-20/CMakeLists.txt index 548b06b2ea..45b507f593 100644 --- a/deal.II/examples/step-20/CMakeLists.txt +++ b/deal.II/examples/step-20/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-21/CMakeLists.txt b/deal.II/examples/step-21/CMakeLists.txt index d723aa62a5..9f13965182 100644 --- a/deal.II/examples/step-21/CMakeLists.txt +++ b/deal.II/examples/step-21/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-22/CMakeLists.txt b/deal.II/examples/step-22/CMakeLists.txt index eb926829e7..d69fa643a9 100644 --- a/deal.II/examples/step-22/CMakeLists.txt +++ b/deal.II/examples/step-22/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-23/CMakeLists.txt b/deal.II/examples/step-23/CMakeLists.txt index 3f6812fc1d..a3af7c520b 100644 --- a/deal.II/examples/step-23/CMakeLists.txt +++ b/deal.II/examples/step-23/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-24/CMakeLists.txt b/deal.II/examples/step-24/CMakeLists.txt index e65b78f940..5c9437dd4e 100644 --- a/deal.II/examples/step-24/CMakeLists.txt +++ b/deal.II/examples/step-24/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-25/CMakeLists.txt b/deal.II/examples/step-25/CMakeLists.txt index 7210cfc690..5469bd1059 100644 --- a/deal.II/examples/step-25/CMakeLists.txt +++ b/deal.II/examples/step-25/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-26/CMakeLists.txt b/deal.II/examples/step-26/CMakeLists.txt index 529de76fe4..699caaee82 100644 --- a/deal.II/examples/step-26/CMakeLists.txt +++ b/deal.II/examples/step-26/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-27/CMakeLists.txt b/deal.II/examples/step-27/CMakeLists.txt index 1824e162e5..25973fd50e 100644 --- a/deal.II/examples/step-27/CMakeLists.txt +++ b/deal.II/examples/step-27/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-28/CMakeLists.txt b/deal.II/examples/step-28/CMakeLists.txt index 79131d6157..b0458b77ff 100644 --- a/deal.II/examples/step-28/CMakeLists.txt +++ b/deal.II/examples/step-28/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-29/CMakeLists.txt b/deal.II/examples/step-29/CMakeLists.txt index 5a89300475..bc905ad0a2 100644 --- a/deal.II/examples/step-29/CMakeLists.txt +++ b/deal.II/examples/step-29/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-3/CMakeLists.txt b/deal.II/examples/step-3/CMakeLists.txt index 7d96d4d8ae..2c2e3b1c3c 100644 --- a/deal.II/examples/step-3/CMakeLists.txt +++ b/deal.II/examples/step-3/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-30/CMakeLists.txt b/deal.II/examples/step-30/CMakeLists.txt index 2e8e775518..1229cf2f26 100644 --- a/deal.II/examples/step-30/CMakeLists.txt +++ b/deal.II/examples/step-30/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-31/CMakeLists.txt b/deal.II/examples/step-31/CMakeLists.txt index 371142c5a0..17a0a270b7 100644 --- a/deal.II/examples/step-31/CMakeLists.txt +++ b/deal.II/examples/step-31/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-32/CMakeLists.txt b/deal.II/examples/step-32/CMakeLists.txt index 43ba7e416e..8d63d9a110 100644 --- a/deal.II/examples/step-32/CMakeLists.txt +++ b/deal.II/examples/step-32/CMakeLists.txt @@ -21,7 +21,7 @@ SET(CLEAN_UP_FILES *.vtu *.pvtu *.visit) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -46,6 +46,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-33/CMakeLists.txt b/deal.II/examples/step-33/CMakeLists.txt index 24c5dcf21b..ea0d5da539 100644 --- a/deal.II/examples/step-33/CMakeLists.txt +++ b/deal.II/examples/step-33/CMakeLists.txt @@ -18,7 +18,7 @@ SET(TARGET_RUN ${TARGET} input.prm) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -39,6 +39,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-34/CMakeLists.txt b/deal.II/examples/step-34/CMakeLists.txt index fb1acb1c94..84a79b3e47 100644 --- a/deal.II/examples/step-34/CMakeLists.txt +++ b/deal.II/examples/step-34/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-35/CMakeLists.txt b/deal.II/examples/step-35/CMakeLists.txt index 298dd8397d..6a6e9d9361 100644 --- a/deal.II/examples/step-35/CMakeLists.txt +++ b/deal.II/examples/step-35/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-36/CMakeLists.txt b/deal.II/examples/step-36/CMakeLists.txt index 1da9453bca..21bc54bb34 100644 --- a/deal.II/examples/step-36/CMakeLists.txt +++ b/deal.II/examples/step-36/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -38,6 +38,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-37/CMakeLists.txt b/deal.II/examples/step-37/CMakeLists.txt index d3cf6e1674..2552771e41 100644 --- a/deal.II/examples/step-37/CMakeLists.txt +++ b/deal.II/examples/step-37/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-38/CMakeLists.txt b/deal.II/examples/step-38/CMakeLists.txt index b168fffc87..1bbcbffbce 100644 --- a/deal.II/examples/step-38/CMakeLists.txt +++ b/deal.II/examples/step-38/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-39/CMakeLists.txt b/deal.II/examples/step-39/CMakeLists.txt index f833a3613b..5fb2b047dd 100644 --- a/deal.II/examples/step-39/CMakeLists.txt +++ b/deal.II/examples/step-39/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-4/CMakeLists.txt b/deal.II/examples/step-4/CMakeLists.txt index ebb5d78af9..1aa6b9b6db 100644 --- a/deal.II/examples/step-4/CMakeLists.txt +++ b/deal.II/examples/step-4/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-40/CMakeLists.txt b/deal.II/examples/step-40/CMakeLists.txt index d2a1f31e3e..12f6652aff 100644 --- a/deal.II/examples/step-40/CMakeLists.txt +++ b/deal.II/examples/step-40/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -38,6 +38,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-41/CMakeLists.txt b/deal.II/examples/step-41/CMakeLists.txt index f799d1ac3b..90f8174114 100644 --- a/deal.II/examples/step-41/CMakeLists.txt +++ b/deal.II/examples/step-41/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-42/CMakeLists.txt b/deal.II/examples/step-42/CMakeLists.txt index e4c053ab81..d2487744bd 100644 --- a/deal.II/examples/step-42/CMakeLists.txt +++ b/deal.II/examples/step-42/CMakeLists.txt @@ -21,7 +21,7 @@ SET(CLEAN_UP_FILES *.vtu *.pvtu *.visit) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -46,6 +46,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-43/CMakeLists.txt b/deal.II/examples/step-43/CMakeLists.txt index a80e5c46b1..1080411cc4 100644 --- a/deal.II/examples/step-43/CMakeLists.txt +++ b/deal.II/examples/step-43/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-44/CMakeLists.txt b/deal.II/examples/step-44/CMakeLists.txt index 729dbd1ec4..877796218d 100644 --- a/deal.II/examples/step-44/CMakeLists.txt +++ b/deal.II/examples/step-44/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-45/CMakeLists.txt b/deal.II/examples/step-45/CMakeLists.txt index 22aba8c0c9..6ed43b81a7 100644 --- a/deal.II/examples/step-45/CMakeLists.txt +++ b/deal.II/examples/step-45/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-46/CMakeLists.txt b/deal.II/examples/step-46/CMakeLists.txt index b13cc883a5..165ae5f5ef 100644 --- a/deal.II/examples/step-46/CMakeLists.txt +++ b/deal.II/examples/step-46/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -36,6 +36,15 @@ which is required for this tutorial step." ) ENDIF() +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-47/CMakeLists.txt b/deal.II/examples/step-47/CMakeLists.txt index 6b32c79f7b..194df792ec 100644 --- a/deal.II/examples/step-47/CMakeLists.txt +++ b/deal.II/examples/step-47/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-48/CMakeLists.txt b/deal.II/examples/step-48/CMakeLists.txt index a499633b59..c989f78e3d 100644 --- a/deal.II/examples/step-48/CMakeLists.txt +++ b/deal.II/examples/step-48/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-5/CMakeLists.txt b/deal.II/examples/step-5/CMakeLists.txt index be17acfb66..d709524395 100644 --- a/deal.II/examples/step-5/CMakeLists.txt +++ b/deal.II/examples/step-5/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-6/CMakeLists.txt b/deal.II/examples/step-6/CMakeLists.txt index 1221542655..2a12ce29dc 100644 --- a/deal.II/examples/step-6/CMakeLists.txt +++ b/deal.II/examples/step-6/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-7/CMakeLists.txt b/deal.II/examples/step-7/CMakeLists.txt index efc3e6b08d..f5b24b5558 100644 --- a/deal.II/examples/step-7/CMakeLists.txt +++ b/deal.II/examples/step-7/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-8/CMakeLists.txt b/deal.II/examples/step-8/CMakeLists.txt index a34919b2f9..b4fd51252c 100644 --- a/deal.II/examples/step-8/CMakeLists.txt +++ b/deal.II/examples/step-8/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() diff --git a/deal.II/examples/step-9/CMakeLists.txt b/deal.II/examples/step-9/CMakeLists.txt index 726348e45d..ff53c51be8 100644 --- a/deal.II/examples/step-9/CMakeLists.txt +++ b/deal.II/examples/step-9/CMakeLists.txt @@ -15,7 +15,7 @@ SET(TARGET_SRC CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -FIND_PACKAGE(deal.II 8.0 REQUIRED +FIND_PACKAGE(deal.II 8.0 QUIET HINTS ${DEAL_II_DIR} ../ ../../ ../../../ ../../../../../ $ENV{DEAL_II_DIR} # @@ -25,6 +25,15 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED # "$ENV{HOME}/workspace/deal.II" ) +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 () + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT() -- 2.39.5