From 5c831d31fdf7e3f681e91b976ebcf22cc53987a0 Mon Sep 17 00:00:00 2001 From: Jack Pappas Date: Wed, 23 Mar 2022 11:52:41 -0400 Subject: [PATCH] Add compile options for clang-cl to allow it to compile riptide_cpp. --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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>")