[PATCH] D26200: [CMake] Set default build type correctly

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 23:19:38 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL285789: [CMake] Set default build type correctly (authored by smeenai).

Changed prior to commit:
  https://reviews.llvm.org/D26200?vs=76584&id=76672#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26200

Files:
  llvm/trunk/CMakeLists.txt


Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -51,7 +51,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" CACHE STRING "Build type (default Debug)")
+  set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug)" FORCE)
 endif()
 
 # This should only apply if you are both on an Apple host, and targeting Apple.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26200.76672.patch
Type: text/x-patch
Size: 552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161102/6ca65782/attachment.bin>


More information about the llvm-commits mailing list