[PATCH] D17398: [CMake] Properly set CMAKE_BUILD_TYPE to Debug by default

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 15:11:42 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL261273: [CMake] Properly set CMAKE_BUILD_TYPE to Debug by default (authored by cbieneman).

Changed prior to commit:
  http://reviews.llvm.org/D17398?vs=48362&id=48411#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17398

Files:
  llvm/trunk/CMakeLists.txt

Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -4,7 +4,7 @@
 
 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17398.48411.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160218/1e2b7e45/attachment.bin>


More information about the llvm-commits mailing list