From 2fa9fa043514f79292cde561b536e8ac4bd7b278 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Mon, 17 Jul 2023 07:14:59 +0200 Subject: [PATCH] Atempt to fix macos ci removing flags introduced to mute clang on windows warnings --- cmake/AddExtraCompilationFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/AddExtraCompilationFlags.cmake b/cmake/AddExtraCompilationFlags.cmake index b999cce86d..a0bf3b085b 100644 --- a/cmake/AddExtraCompilationFlags.cmake +++ b/cmake/AddExtraCompilationFlags.cmake @@ -180,7 +180,7 @@ if(MSVC) # Avoid build error C1128 list(APPEND VISP_EXTRA_CXX_FLAGS "/bigobj") endif() - if((CMAKE_CXX_COMPILER MATCHES "clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) + if(REMOVE_FS AND (CMAKE_CXX_COMPILER MATCHES "clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) add_extra_compiler_option("-Wno-c++98-compat") # turn off warning due to json add_extra_compiler_option("-Wno-c++98-compat-pedantic") add_extra_compiler_option("-Wno-c11-extensions")