Modify debug flag
This commit is contained in:
parent
bd46483efa
commit
da60faca1d
@ -36,9 +36,10 @@ message("BUILD_VERSION:${BUILD_VERSION}")
|
|||||||
set(VERSION ${BUILD_VERSION})
|
set(VERSION ${BUILD_VERSION})
|
||||||
|
|
||||||
if(NOT DEFINED CMAKE_BUILD_TYPE)
|
if(NOT DEFINED CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Release")
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
endif(NOT DEFINED CMAKE_BUILD_TYPE)
|
endif(NOT DEFINED CMAKE_BUILD_TYPE)
|
||||||
if("Debug" STREQUAL CMAKE_BUILD_TYPE)
|
string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type)
|
||||||
|
if("debug" STREQUAL build_type)
|
||||||
add_definitions(-D_DEBUG)
|
add_definitions(-D_DEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user