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