Commit 09019529 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

ENH: Set SuperElastix (non-superbuild) CMAKE_BUILD_TYPE to Release by default

parent aedabcbb
......@@ -44,8 +44,10 @@ mark_as_advanced( BUILD_EXPRESS )
option( BUILD_EXPRESS "" OFF )
# Build release by default
if( NOT DEFINED CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE "Release" )
if( NOT CMAKE_BUILD_TYPE)
set( CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE )
endif()
# Build examples by default
......
......@@ -25,6 +25,7 @@ ExternalProject_Add( ${proj}
BINARY_DIR ${proj}-build
CMAKE_ARGS
--no-warn-unused-cli
-CMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DBUILD_EXAMPLES:BOOL=${BUILD_EXAMPLES}
-DBUILD_TESTING:BOOL=${BUILD_TESTING}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment