Skip to content

Commit

Permalink
commit check
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyfcu committed Nov 14, 2024
1 parent b1267c7 commit 2c867e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 2c867e0

Please sign in to comment.