Added some messages to CMake script
authorkhizmax <khizmax@gmail.com>
Thu, 16 Jun 2016 14:02:17 +0000 (17:02 +0300)
committerkhizmax <khizmax@gmail.com>
Thu, 16 Jun 2016 14:02:17 +0000 (17:02 +0300)
CMakeLists.txt

index 893f616..8ebef3f 100644 (file)
@@ -74,8 +74,6 @@ if(NOT CMAKE_BUILD_TYPE)
   set(CMAKE_BUILD_TYPE Debug CACHE STRING "Default build type to Debug" FORCE)
 endif()
 
-message("Build type -- ${CMAKE_BUILD_TYPE}")
-
 if(CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")  
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -fno-strict-aliasing")
@@ -85,6 +83,10 @@ endif()
 
 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}")
+
 include_directories(${PROJECT_SOURCE_DIR})
 
 # Component names for separate distribution in rpms, debs etc.