mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-11-09 23:18:49 +00:00
Use -fPIC option when building shared libs
This commit is contained in:
parent
d121bbe709
commit
b206dd44f0
|
@ -76,6 +76,10 @@ if(UNIX)
|
|||
)
|
||||
target_compile_options(discord-rpc PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-std=c++14>)
|
||||
|
||||
if (${BUILD_SHARED_LIBS})
|
||||
target_compile_options(discord-rpc PRIVATE -fPIC)
|
||||
endif (${BUILD_SHARED_LIBS})
|
||||
|
||||
if (APPLE)
|
||||
target_link_libraries(discord-rpc PRIVATE "-framework AppKit")
|
||||
endif (APPLE)
|
||||
|
|
Loading…
Reference in a new issue