Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-09-01 12:05:15 +0300
committerRobert Adam <dev@robert-adam.de>2020-09-01 12:05:15 +0300
commit968f320322559f0c7ea575f3c3d3d2c4d763fbe4 (patch)
tree48ee72cbeedd124966747763ca28b98e020d7a40 /CMakeLists.txt
parent385341937c9a75a1b4ec726501cf0e4944939fd7 (diff)
BUILD(cmake): Print out build type
In addition to Mumble's version and the target architecture, also print the used build type.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7bd5220c8..842522551 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,15 +59,20 @@ get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(IS_MULTI_CONFIG)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
+ set(BUILD_STR "<mulit-config>")
else()
# We set the CMake configuration to "Release", in case it's not set.
if(NOT CMAKE_BUILD_TYPE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY VALUE "Release")
+
+ set(BUILD_STR "Release")
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
add_definitions(
"-DDEBUG"
"-DSNAPSHOT_BUILD"
)
+
+ set(BUILD_STR "Debug")
elseif(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release")
message(FATAL_ERROR "Unsupported build type! Please choose either \"Debug\" or \"Release\".")
endif()
@@ -85,6 +90,7 @@ endif()
message(STATUS "##################################################")
message(STATUS "Mumble version: ${version}")
message(STATUS "Architecture: ${ARCH}")
+message(STATUS "Build type: ${BUILD_STR}")
message(STATUS "##################################################")
add_subdirectory(src)