[PATCH] Setting up CMake to default to RelWithDebInfo when no build type is specified.
Chris Bieneman
beanz at apple.com
Thu Feb 19 15:04:51 PST 2015
Conditionalized based on CMAKE_CONFIGURATION_TYPES to not set a default for multi-configuration generators.
http://reviews.llvm.org/D7360
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -2,6 +2,11 @@
cmake_minimum_required(VERSION 2.8.8)
+if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
+ message(STATUS "No build type selected, default to Debug")
+ set(CMAKE_BUILD_TYPE "Debug")
+endif()
+
# FIXME: It may be removed when we use 2.8.12.
if(CMAKE_VERSION VERSION_LESS 2.8.12)
# Invalidate a couple of keywords.
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7360.20346.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150219/d6325a3a/attachment.bin>
More information about the llvm-commits
mailing list