mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Merge pull request #919 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5_fork:topic_cmake_build to develop
* commit '9364df1c6d6d4661b6c32278268ccbe1640a082c': Fix CMake build type if none was specified to be cached
This commit is contained in:
commit
a30da017cc
@ -27,8 +27,12 @@ macro (SET_HDF_BUILD_TYPE)
|
||||
set(HDF_BUILD_TYPE "Release")
|
||||
endif()
|
||||
endif()
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.")
|
||||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build." FORCE)
|
||||
# Set the possible values of build type for cmake-gui
|
||||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
|
||||
"MinSizeRel" "RelWithDebInfo")
|
||||
endif()
|
||||
endmacro ()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user