CGAL_DEV_MODE: Release is now the default CMAKE_BUILD_TYPE

Even for a CGAL developer, Release is what we want, unless we really want
to open a debugger.
This commit is contained in:
Laurent Rineau 2018-03-20 16:47:45 +01:00
parent 66b4ec4214
commit 30df6e803a
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ uniquely_add_flags( CMAKE_EXE_LINKER_FLAGS_DEBUG ${CGAL_EXE_LINKER_FLAGS_DE
# Set a default build type if none is given
if ( NOT CMAKE_BUILD_TYPE )
if( CGAL_DEV_MODE OR RUNNING_CGAL_AUTO_TEST )
if( RUNNING_CGAL_AUTO_TEST )
typed_cache_set ( STRING "Build type: Release, Debug, RelWithDebInfo or MinSizeRel" CMAKE_BUILD_TYPE Debug )
else ()
typed_cache_set ( STRING "Build type: Release, Debug, RelWithDebInfo or MinSizeRel" CMAKE_BUILD_TYPE Release )