mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2025-01-09 00:25:41 +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>)
|
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)
|
if (APPLE)
|
||||||
target_link_libraries(discord-rpc PRIVATE "-framework AppKit")
|
target_link_libraries(discord-rpc PRIVATE "-framework AppKit")
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
Loading…
Reference in a new issue