Potential fix for MacOS ci

This commit is contained in:
AlexandreRouma 2021-10-03 17:41:07 +02:00
parent 73393e36c6
commit fcd759654c

View File

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