Another potential fix for the MacOS issues

This commit is contained in:
AlexandreRouma
2021-10-03 17:48:32 +02:00
parent fcd759654c
commit 83fc20cacc
2 changed files with 4 additions and 6 deletions

View File

@ -18,8 +18,7 @@ add_library(sdrpp_core SHARED ${SRC})
if (MSVC)
target_compile_options(sdrpp_core PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(sdrpp_core PRIVATE -O3 -Wno-unused-command-line-argument -undefined dynamic_lookup)
target_compile_options(sdrpp_core PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-std=c++17>)
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
endif ()