Fixed compile arguments for the discord module

This commit is contained in:
AlexandreRouma 2021-10-03 01:29:32 +02:00
parent 4564475821
commit dc31539f6e

View File

@ -4,9 +4,9 @@ project(discord_integration)
if (MSVC) if (MSVC)
add_compile_options(/O2 /std:c++17 /EHsc) add_compile_options(/O2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") 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 () else ()
add_compile_options(-O3 -std=c++17) add_compile_options(-O3 -std=c++17 -fPIC)
endif () endif ()
add_subdirectory("discord-rpc") add_subdirectory("discord-rpc")