forked from OSchip/llvm-project
[CMake] Properly set CMAKE_BUILD_TYPE to Debug by default
Summary: PR26666: CMAKE_BUILD_TYPE was previously being reset to blank. Reviewers: rnk, beanz Subscribers: llvm-commits Patch By: Derek Bruening Differential Revision: http://reviews.llvm.org/D17398 llvm-svn: 261273
This commit is contained in:
parent
9e85e5a8c9
commit
9b6dcc211a
|
@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8.12.2)
|
|||
|
||||
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "No build type selected, default to Debug")
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug)")
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0022)
|
||||
|
|
Loading…
Reference in New Issue