diff --git a/discord_integration/CMakeLists.txt b/discord_integration/CMakeLists.txt index 5773c68..1cf661e 100644 --- a/discord_integration/CMakeLists.txt +++ b/discord_integration/CMakeLists.txt @@ -4,9 +4,9 @@ project(discord_integration) if (MSVC) add_compile_options(/O2 /std:c++17 /EHsc) elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup) + add_compile_options(-O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup -fPIC) else () - add_compile_options(-O3 -std=c++17) + add_compile_options(-O3 -std=c++17 -fPIC) endif () add_subdirectory("discord-rpc")