diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 99e84d2d..4844d18c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,7 +9,10 @@ if(PROJ_COMPILER_FRONTEND STREQUAL "MSVC") add_compile_options(-D_CRT_SECURE_NO_WARNINGS) add_compile_options(-permissive- -d2FH4- -Zc:strictStrings-) elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - add_compile_options(-Wno-unused-variable -Wno-unused-function) + add_compile_options(-march=haswell) + add_compile_options(-Wno-unused-function) + add_compile_options(-Wno-unknown-pragmas -Wno-unused-variable -Wno-unused-parameter -Wno-ignored-attributes) + add_compile_options(-Wno-format) # TODO: Remove this and fix all the printf format mismatches endif() elseif(PROJ_COMPILER_FRONTEND STREQUAL "GNU") add_compile_options("$<$:-O0>")