尝试修复linux编译失败的问题

This commit is contained in:
xiongziliang 2019-12-18 10:19:08 +08:00
parent 31438cfde4
commit 97bf82e54c

View File

@ -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()