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/07/29 21:59:20 UTC
svn commit: r1614472 - /qpid/trunk/qpid/cpp/CMakeLists.txt
Author: aconway
Date: Tue Jul 29 19:59:19 2014
New Revision: 1614472
URL: http://svn.apache.org/r1614472
Log:
QPID-5941: Set sensible default build type: default is RelWithDebInfo.
Modified:
qpid/trunk/qpid/cpp/CMakeLists.txt
Modified: qpid/trunk/qpid/cpp/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/CMakeLists.txt?rev=1614472&r1=1614471&r2=1614472&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/CMakeLists.txt Tue Jul 29 19:59:19 2014
@@ -16,6 +16,15 @@
# specific language governing permissions and limitations
# 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-cpp)
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
@@ -223,3 +232,6 @@ add_subdirectory(docs/man)
add_subdirectory(examples)
include (CPack)
+
+# Build type message again, last so it is visible at end of output.
+message("Build type is *${CMAKE_BUILD_TYPE}*${has_debug_symbols}")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org