mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 18:57:11 +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)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
project(discord_integration)
|
project(discord_integration)
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
# Nothing to add
|
||||||
|
else ()
|
||||||
|
add_compile_options(-fPIC)
|
||||||
|
endif ()
|
||||||
|
|
||||||
add_subdirectory("discord-rpc")
|
add_subdirectory("discord-rpc")
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/O2 /Ob2 /std:c++17 /EHsc)
|
add_compile_options(/O2 /Ob2 /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 -fPIC)
|
add_compile_options(-O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||||
else ()
|
else ()
|
||||||
add_compile_options(-O3 -std=c++17 -fPIC)
|
add_compile_options(-O3 -std=c++17)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
file(GLOB SRC "src/*.cpp")
|
file(GLOB SRC "src/*.cpp")
|
||||||
|
Loading…
Reference in New Issue
Block a user