Commit 88149fae by Paul Thompson

Leave CMAKE_BUILD_TYPE absent on those generators which don't use it.

parent 4a3be934
...@@ -110,10 +110,15 @@ ELSE () ...@@ -110,10 +110,15 @@ ELSE ()
ENDIF () ENDIF ()
ENDIF() ENDIF()
# Build Debug by default IF( NOT CMAKE_CONFIGURATION_TYPES )
IF (NOT CMAKE_BUILD_TYPE) # Build Debug by default
SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) IF (NOT CMAKE_BUILD_TYPE)
ENDIF () SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
ENDIF ()
ELSE()
# Using a multi-configuration generator eg MSVC or Xcode
# that uses CMAKE_CONFIGURATION_TYPES and not CMAKE_BUILD_TYPE
ENDIF()
IF (OPENSSL_FOUND) IF (OPENSSL_FOUND)
ADD_DEFINITIONS(-DGIT_SSL) ADD_DEFINITIONS(-DGIT_SSL)
......
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