diff options
Diffstat (limited to 'vcpkg/ports/libdivide/no-werror.patch')
| -rw-r--r-- | vcpkg/ports/libdivide/no-werror.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/libdivide/no-werror.patch b/vcpkg/ports/libdivide/no-werror.patch new file mode 100644 index 0000000..9d15381 --- /dev/null +++ b/vcpkg/ports/libdivide/no-werror.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 136400d..f54a722 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,15 +15,15 @@ include(CMakePushCheckState) + # Maximum warnings level & warnings as error + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + if (CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC") # clang-cl +- add_compile_options("/W4;/WX;") ++ add_compile_options("/W4") + else() # clang native +- add_compile_options("-Wall;-Wextra;-pedantic;-Werror") ++ add_compile_options("-Wall;-Wextra;-pedantic") + endif() + else() + add_compile_options( +- "$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>" +- "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic;-Werror>" +- "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic;-Werror>" ++ "$<$<CXX_COMPILER_ID:MSVC>:/W4>" ++ "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic>" ++ "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic>" + ) + endif() + |