diff --git a/CMakeLists.txt b/CMakeLists.txt index 04cdecb5e..6aab060b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,10 +83,10 @@ endif() if(CMAKE_C_COMPILER_ID MATCHES "Clang") add_compile_options( - -Wshorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments -Wno-c2x-extensions ) + add_compile_options("$<$:-Wshorten-64-to-32>") endif() check_c_compiler_flag("-Watomic-implicit-seq-cst" COMPILER_SUPPORTS_WATOMIC)