diff options
author | Sergey Yershov <syershov@maps.me> | 2016-11-03 16:40:05 +0300 |
---|---|---|
committer | Sergey Yershov <syershov@maps.me> | 2016-11-03 16:40:05 +0300 |
commit | cd4b4bcf6f8653183146a271970f9328648fa77e (patch) | |
tree | 2793c3eaba9a5bb838cd662c0783c026055d703d /CMakeLists.txt | |
parent | 2d9f8cac3d3ae4cca465f93713518bc22ed988f9 (diff) |
Fix Cmake Relese build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 85f8fa55d3..e8af8fc9ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,12 +39,16 @@ include_directories( set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") +endif() + if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") add_definitions(-DDEBUG) endif() -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE "Release") +if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") + add_definitions(-DRELEASE) endif() if (NOT NO_TESTS) |