From baf018a1b13e9488125b1420e493928ea7b544f9 Mon Sep 17 00:00:00 2001 From: khizmax Date: Thu, 16 Jun 2016 17:09:26 +0300 Subject: [PATCH] Tuned CMake messages --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ebef3ff..e2b929f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,7 +85,11 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") message("Build type -- ${CMAKE_BUILD_TYPE}") message("Compiler version: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}") -message("Compiler flags: ${CMAKE_CXX_FLAGS}") +if (CMAKE_BUILD_TYPE MATCHES Debug) + message("Compiler flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}") +else() + message("Compiler flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}") +endif() include_directories(${PROJECT_SOURCE_DIR}) -- 2.34.1