From f5c562b69e4307235f0f9ec9b80514e8591b1f0d Mon Sep 17 00:00:00 2001 From: Artur Wolf Date: Tue, 17 Sep 2024 17:24:46 +0200 Subject: [PATCH] Fixed build for clang --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4926a16..9fd164a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,10 @@ if(MSVC) string(REGEX REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") add_compile_options(/Zi /external:anglebrackets /external:W0) else() - add_compile_options(-Wall -Wextra -pedantic -Wno-stringop-overflow) + add_compile_options(-Wall -Wextra -pedantic) + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + add_compile_options(-Wno-stringop-overflow) + endif() endif() set(DSVEOSCOSIM_TYPE STATIC)