From cb171bf3e41af754212509b8f324e786df4ce316 Mon Sep 17 00:00:00 2001 From: asartori86 Date: Fri, 11 Nov 2016 11:18:55 +0100 Subject: [PATCH] updated CMAKE_BUILD_TYPE policy --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30cd6fa4..7106ac49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,14 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.3 REQUIRED HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) + +# If the CMAKE_BUILD_TYPE is set via command line we keep this one, +# otherwise it is set equal to the one of deal.II library +SET(CMAKE_BUILD_TYPE ${DEAL_II_BUILD_TYPE} CACHE STRING + "Choose the type of build, options are: Debug, Release or DebugRelease" + ) + + DEAL_II_INITIALIZE_CACHED_VARIABLES()