mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修正Release 和 Debug编译选项
根据传入的 -DCMAKE_BUILD_TYPE=Release 或者Debug, 或者不写(默认是Debug) 来决定生成何种编译文件。
This commit is contained in:
parent
adc6f652bd
commit
2bb9003ac5
@ -12,7 +12,7 @@ if(CCACHE_FOUND)
|
||||
endif(CCACHE_FOUND)
|
||||
|
||||
#set(CMAKE_BUILD_TYPE "Release")
|
||||
if (${CMAKE_BUILD_TYPE} MATCHES "")
|
||||
if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
endif ()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user