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-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to