mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-01 03:30:54 +08:00
尝试修复linux编译失败的问题
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
file(GLOB api_src_list include/*.h source/*.cpp source/*.h source/*.c)
|
||||
add_library(api SHARED ${api_src_list})
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
add_compile_options(-fPIC)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DMediaKitApi_EXPORTS)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user