Permalink
Browse files

Merge pull request #218 from asartori86/update_cmake

updated CMAKE_BUILD_TYPE policy
  • Loading branch information...
2 parents 3d2f5bf + cb171bf commit 7a4e38dd2fbc6e3d10f2ed189148684d299378bd @asartori86 asartori86 committed on GitHub Nov 11, 2016
Showing with 8 additions and 0 deletions.
  1. +8 −0 CMakeLists.txt
View
@@ -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()

0 comments on commit 7a4e38d

Please sign in to comment.