mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-26 01:07:55 +00:00
Use -fPIC option when building shared libs
This commit is contained in:
parent
d121bbe709
commit
b206dd44f0
1 changed files with 4 additions and 0 deletions
|
@ -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