mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
MacOS fix final (final)????
This commit is contained in:
parent
ea0d905177
commit
c515ddb811
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user