Skip to content

Commit

Permalink
Merge pull request #218 from asartori86/update_cmake
Browse files Browse the repository at this point in the history
updated CMAKE_BUILD_TYPE policy
  • Loading branch information
asartori86 committed Nov 11, 2016
2 parents 3d2f5bf + cb171bf commit 7a4e38d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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()


Expand Down

0 comments on commit 7a4e38d

Please sign in to comment.