You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2014/08/11 16:40:57 UTC
svn commit: r1617299 - /qpid/dispatch/trunk/CMakeLists.txt
Author: aconway
Date: Mon Aug 11 14:40:57 2014
New Revision: 1617299
URL: http://svn.apache.org/r1617299
Log:
NO-JIRA: Set default build type to RelWithDebInfo.
Modified:
qpid/dispatch/trunk/CMakeLists.txt
Modified: qpid/dispatch/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/dispatch/trunk/CMakeLists.txt?rev=1617299&r1=1617298&r2=1617299&view=diff
==============================================================================
--- qpid/dispatch/trunk/CMakeLists.txt (original)
+++ qpid/dispatch/trunk/CMakeLists.txt Mon Aug 11 14:40:57 2014
@@ -17,6 +17,14 @@
## under the License.
##
+# Set default build type. Must come before project() which sets default to ""
+set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE string
+ "Build type: Debug, Release, RelWithDebInfo or MinSizeRel (default RelWithDebInfo)")
+if (CMAKE_BUILD_TYPE MATCHES "Deb")
+ set (has_debug_symbols " (has debug symbols)")
+endif (CMAKE_BUILD_TYPE MATCHES "Deb")
+message("Build type is \"${CMAKE_BUILD_TYPE}\"${has_debug_symbols}")
+
project(qpid-dispatch C)
cmake_minimum_required(VERSION 2.6)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org