From dc31539f6eb508e0bb57c5d769c32e48f291e688 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sun, 3 Oct 2021 01:29:32 +0200 Subject: [PATCH] Fixed compile arguments for the discord module --- discord_integration/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord_integration/CMakeLists.txt b/discord_integration/CMakeLists.txt index 5773c68f..1cf661e1 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")