未指定编译类型时,强制为Debug编译

This commit is contained in:
xiongziliang 2021-09-29 01:18:58 +08:00
parent 4ff206fa42
commit 1292ec6d49

View File

@ -12,6 +12,10 @@ if(CCACHE_FOUND)
endif(CCACHE_FOUND)
#set(CMAKE_BUILD_TYPE "Release")
if (${CMAKE_BUILD_TYPE} MATCHES "")
set(CMAKE_BUILD_TYPE "Debug")
endif ()
message(STATUS "编译类型:${CMAKE_BUILD_TYPE}")
#binlib