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

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 10:55:03 PST 2016


bruening updated this revision to Diff 48362.
bruening added a comment.

Switch to caching CMAKE_BUILD_TYPE.


http://reviews.llvm.org/D17398

Files:
  CMakeLists.txt

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ 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.48362.patch
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160218/8d3bffef/attachment.bin>


More information about the llvm-commits mailing list