From 234e1618c882bd7754afa8678dfdc3551c57fb0a Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sun, 18 Apr 2021 19:20:51 +0200 Subject: [PATCH] Bugfix for OSX 3 --- CMakeLists.txt | 4 ++-- airspy_source/CMakeLists.txt | 4 ++-- airspyhf_source/CMakeLists.txt | 4 ++-- audio_sink/CMakeLists.txt | 4 ++-- bladerf_source/CMakeLists.txt | 4 ++-- core/CMakeLists.txt | 4 ++-- falcon9_decoder/CMakeLists.txt | 4 ++-- file_source/CMakeLists.txt | 4 ++-- hackrf_source/CMakeLists.txt | 4 ++-- meteor_demodulator/CMakeLists.txt | 4 ++-- plutosdr_source/CMakeLists.txt | 4 ++-- radio/CMakeLists.txt | 4 ++-- recorder/CMakeLists.txt | 4 ++-- rtl_sdr_source/CMakeLists.txt | 4 ++-- rtl_tcp_source/CMakeLists.txt | 4 ++-- rx888_source/CMakeLists.txt | 4 ++-- sdrplay_source/CMakeLists.txt | 4 ++-- soapy_source/CMakeLists.txt | 4 ++-- spyserver_source/CMakeLists.txt | 4 ++-- weather_sat_decoder/CMakeLists.txt | 4 ++-- 20 files changed, 40 insertions(+), 40 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8f9a4f2..b207bb35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,8 +84,8 @@ endif (OPT_BUILD_WEATHER_SAT_DECODER) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/airspy_source/CMakeLists.txt b/airspy_source/CMakeLists.txt index cea6586e..86075a64 100644 --- a/airspy_source/CMakeLists.txt +++ b/airspy_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(airspy_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/airspyhf_source/CMakeLists.txt b/airspyhf_source/CMakeLists.txt index 6d7f37a8..2d780a09 100644 --- a/airspyhf_source/CMakeLists.txt +++ b/airspyhf_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(airspyhf_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/audio_sink/CMakeLists.txt b/audio_sink/CMakeLists.txt index d877e89f..d9a4a41f 100644 --- a/audio_sink/CMakeLists.txt +++ b/audio_sink/CMakeLists.txt @@ -3,8 +3,8 @@ project(audio_sink) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/bladerf_source/CMakeLists.txt b/bladerf_source/CMakeLists.txt index d6ecfd45..ebed0174 100644 --- a/bladerf_source/CMakeLists.txt +++ b/bladerf_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(bladerf_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index c7d39ab8..05fc3e77 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -5,8 +5,8 @@ project(sdrpp_core) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/falcon9_decoder/CMakeLists.txt b/falcon9_decoder/CMakeLists.txt index e283d9f8..f97c61e1 100644 --- a/falcon9_decoder/CMakeLists.txt +++ b/falcon9_decoder/CMakeLists.txt @@ -3,8 +3,8 @@ project(falcon9_decoder) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/file_source/CMakeLists.txt b/file_source/CMakeLists.txt index 1a05ebee..896deef4 100644 --- a/file_source/CMakeLists.txt +++ b/file_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(file_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/hackrf_source/CMakeLists.txt b/hackrf_source/CMakeLists.txt index 8ef65a22..cc20c0bb 100644 --- a/hackrf_source/CMakeLists.txt +++ b/hackrf_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(hackrf_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/meteor_demodulator/CMakeLists.txt b/meteor_demodulator/CMakeLists.txt index 71007a6a..052adfbf 100644 --- a/meteor_demodulator/CMakeLists.txt +++ b/meteor_demodulator/CMakeLists.txt @@ -3,8 +3,8 @@ project(meteor_demodulator) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/plutosdr_source/CMakeLists.txt b/plutosdr_source/CMakeLists.txt index adc5ac8e..07a882fd 100644 --- a/plutosdr_source/CMakeLists.txt +++ b/plutosdr_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(plutosdr_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/radio/CMakeLists.txt b/radio/CMakeLists.txt index b05240c8..7a7fd559 100644 --- a/radio/CMakeLists.txt +++ b/radio/CMakeLists.txt @@ -3,8 +3,8 @@ project(radio) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/recorder/CMakeLists.txt b/recorder/CMakeLists.txt index e3a32a47..345237af 100644 --- a/recorder/CMakeLists.txt +++ b/recorder/CMakeLists.txt @@ -3,8 +3,8 @@ project(recorder) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/rtl_sdr_source/CMakeLists.txt b/rtl_sdr_source/CMakeLists.txt index b763b889..e54c54a9 100644 --- a/rtl_sdr_source/CMakeLists.txt +++ b/rtl_sdr_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(rtl_sdr_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/rtl_tcp_source/CMakeLists.txt b/rtl_tcp_source/CMakeLists.txt index bc231179..ab5630c5 100644 --- a/rtl_tcp_source/CMakeLists.txt +++ b/rtl_tcp_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(rtl_tcp_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/rx888_source/CMakeLists.txt b/rx888_source/CMakeLists.txt index 9cbc55cd..d5a90550 100644 --- a/rx888_source/CMakeLists.txt +++ b/rx888_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(rx888_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/sdrplay_source/CMakeLists.txt b/sdrplay_source/CMakeLists.txt index 5d7e74b1..e8b82fc5 100644 --- a/sdrplay_source/CMakeLists.txt +++ b/sdrplay_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(sdrplay_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/soapy_source/CMakeLists.txt b/soapy_source/CMakeLists.txt index 2e3a0519..20cb5bae 100644 --- a/soapy_source/CMakeLists.txt +++ b/soapy_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(soapy_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/spyserver_source/CMakeLists.txt b/spyserver_source/CMakeLists.txt index b1184df6..c30ec54e 100644 --- a/spyserver_source/CMakeLists.txt +++ b/spyserver_source/CMakeLists.txt @@ -3,8 +3,8 @@ project(spyserver_source) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif () diff --git a/weather_sat_decoder/CMakeLists.txt b/weather_sat_decoder/CMakeLists.txt index 8e0a6c37..c5576507 100644 --- a/weather_sat_decoder/CMakeLists.txt +++ b/weather_sat_decoder/CMakeLists.txt @@ -3,8 +3,8 @@ project(weather_sat_decoder) if (MSVC) set(CMAKE_CXX_FLAGS "-O2 /std:c++17 /EHsc") -elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -undefined dynamic_lookup") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -Wnounused-command-line-argument -undefined dynamic_lookup") else () set(CMAKE_CXX_FLAGS "-O3 -std=c++17") endif ()