From 2c867e070e9fec7f2644ea24a41c75f1b55c2b49 Mon Sep 17 00:00:00 2001 From: baiyfcu Date: Thu, 14 Nov 2024 23:36:20 +0800 Subject: [PATCH] commit check --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49ae735ad5..21992285df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,10 +92,13 @@ if(ENABLE_CXX_API) message(WARNING "Windows下C++ API SDK只支持md/mdd,ENABLE_MSVC_MT set off") endif() # 在 Windows 下启用导出所有符号的选项 - if(WIN32) +if(MSVC) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE") endif() + include_directories(${ROOT_BINARY_DIR}) + else() add_definitions(-DMediaKit_STATIC) endif ()