diff --git a/math/libdivide/files/patch-CMakeLists.txt b/math/libdivide/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..b89ebfba8f21 --- /dev/null +++ b/math/libdivide/files/patch-CMakeLists.txt @@ -0,0 +1,23 @@ +--- CMakeLists.txt.orig 2021-07-17 18:22:14 UTC ++++ CMakeLists.txt +@@ -16,9 +16,9 @@ include(CMakeSanitize) + # Maximum warnings level & warnings as error + add_compile_options( + "$<$:/W4;/WX>" +- "$<$:-Wall;-Wextra;-pedantic;-Werror>" +- "$<$:-Wall;-Wextra;-pedantic;-Werror>" +- "$<$:-Wall;-Wextra;-pedantic;-Werror>" ++ "$<$:-Wall;-Wextra;-pedanticr>" ++ "$<$:-Wall;-Wextra;-pedantic>" ++ "$<$:-Wall;-Wextra;-pedantic>" + ) + + # Build options ################################################ +@@ -93,7 +93,6 @@ if (BUILD_TESTS AND NOT CMAKE_CROSSCOMPILING) + CPU_ARM_NEON) + if (CPU_X86 OR CPU_ARM_NEON) + cmake_push_check_state() +- set(CMAKE_REQUIRED_FLAGS -Werror) + check_cxx_compiler_flag(-march=native MARCH_NATIVE) + cmake_pop_check_state() +