diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d3062f67dd..cbc9e2f6e3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -113,8 +113,8 @@ target_link_libraries(elementssimplicity core_interface ) -# macOS Apple Clang is stricter than Linux GCC on this vendored code -if(APPLE) +# Clang is stricter than Linux GCC on this vendored code +if(CMAKE_C_COMPILER_ID MATCHES "Clang") target_compile_options(elementssimplicity PRIVATE -Wno-error=conditional-uninitialized -Wno-error=implicit-fallthrough