diff options
author | Alan Conway <aconway@apache.org> | 2014-07-29 19:59:19 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2014-07-29 19:59:19 +0000 |
commit | 6025a327cf5b9007354fbf1f71e0d6a7fa1f478b (patch) | |
tree | 5ef9eed7af9a8c37b0b1085581487af45da452b5 /qpid | |
parent | 63887e9ffebaa10f33f4afdfe6f88c359d844a8d (diff) | |
download | qpid-python-6025a327cf5b9007354fbf1f71e0d6a7fa1f478b.tar.gz |
QPID-5941: Set sensible default build type: default is RelWithDebInfo.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614472 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r-- | qpid/cpp/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qpid/cpp/CMakeLists.txt b/qpid/cpp/CMakeLists.txt index c5be4de97a..6bb4a97f20 100644 --- a/qpid/cpp/CMakeLists.txt +++ b/qpid/cpp/CMakeLists.txt @@ -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}") |