From 1292ec6d49ab592fdac9464cb229984a746d2ef9 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 29 Sep 2021 01:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E6=8C=87=E5=AE=9A=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=97=B6,=E5=BC=BA=E5=88=B6=E4=B8=BADebug?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ee4f185..e96eb6e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") #设置bin和lib库目录