Modify debug flag

This commit is contained in:
KangLin 2021-04-06 14:27:01 +08:00
parent bd46483efa
commit da60faca1d

View File

@ -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()