MacOS fix final (final)????

This commit is contained in:
AlexandreRouma 2021-10-04 01:13:02 +02:00
parent ea0d905177
commit c515ddb811

View File

@ -1,14 +1,20 @@
cmake_minimum_required(VERSION 3.13)
project(discord_integration)
if (MSVC)
# Nothing to add
else ()
add_compile_options(-fPIC)
endif ()
add_subdirectory("discord-rpc")
if (MSVC)
add_compile_options(/O2 /Ob2 /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 -fPIC)
add_compile_options(-O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
add_compile_options(-O3 -std=c++17 -fPIC)
add_compile_options(-O3 -std=c++17)
endif ()
file(GLOB SRC "src/*.cpp")