You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/10/10 14:36:53 UTC

svn commit: r1630777 - /qpid/proton/branches/examples/CMakeLists.txt

Author: gsim
Date: Fri Oct 10 12:36:53 2014
New Revision: 1630777

URL: http://svn.apache.org/r1630777
Log:
NO-JIRA: Set default build type to RelWithDebInfo.

Modified:
    qpid/proton/branches/examples/CMakeLists.txt

Modified: qpid/proton/branches/examples/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/CMakeLists.txt?rev=1630777&r1=1630776&r2=1630777&view=diff
==============================================================================
--- qpid/proton/branches/examples/CMakeLists.txt (original)
+++ qpid/proton/branches/examples/CMakeLists.txt Fri Oct 10 12:36:53 2014
@@ -18,6 +18,14 @@
 #
 cmake_minimum_required (VERSION 2.6)
 
+# 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}")
+
 option(BUILD_WITH_CXX "Compile Proton using C++" OFF)
 if ("${CMAKE_GENERATOR}" MATCHES "^Visual Studio")
   # No C99 capability, use C++



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org