Merge pull request #6017 from mpimenov/cmake-show-build-type

[cmake] Show build type.
This commit is contained in:
therearesomewhocallmetim 2017-05-11 13:51:47 +03:00 committed by GitHub
commit 21a332decc

View file

@ -76,11 +76,13 @@ endif()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_definitions(-DDEBUG)
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
add_definitions(-DRELEASE)
else()
message(FATAL_ERROR "Unknown build type: " ${CMAKE_BUILD_TYPE})
endif()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
add_definitions(-DRELEASE)
endif()
message("Build type: " ${CMAKE_BUILD_TYPE})
if (NOT SKIP_TESTS)
set(SKIP_TESTS FALSE)