mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-20 08:47:50 +08:00
Add ENABLE_VERSION macro check. (#4100)
This commit is contained in:
parent
9863f9c160
commit
b7b7989fae
@ -208,8 +208,8 @@ elseif(WIN32)
|
|||||||
# warning C4530: C++ exception handler used, but unwind semantics are not enabled.
|
# warning C4530: C++ exception handler used, but unwind semantics are not enabled.
|
||||||
"/EHsc")
|
"/EHsc")
|
||||||
# disable Windows logo
|
# disable Windows logo
|
||||||
list(APPEND COMPILE_OPTIONS_DEFAULT "/nologo")
|
string(REPLACE "/nologo" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||||
list(APPEND CMAKE_STATIC_LINKER_FLAGS "/nologo")
|
set(CMAKE_STATIC_LINKER_FLAGS "")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,11 @@
|
|||||||
#endif //APSTUDIO_INVOKED
|
#endif //APSTUDIO_INVOKED
|
||||||
|
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
|
|
||||||
|
#if defined(ENABLE_VERSION)
|
||||||
#include "ZLMVersion.h"
|
#include "ZLMVersion.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ZLM_VERSION 8,0,0,1
|
#define ZLM_VERSION 8,0,0,1
|
||||||
|
|
||||||
// 拼接 BRANCH_NAME 和 COMMIT_HASH ,例如 master - 1c8ed1c
|
// 拼接 BRANCH_NAME 和 COMMIT_HASH ,例如 master - 1c8ed1c
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user