vcpkg/ports/bext-mp/fix-build-flags.patch

18 lines
742 B
Diff
Raw Normal View History

2023-10-04 11:17:31 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index deaa67c..fb82294 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,10 +34,10 @@ target_sources(mp
if(PROJECT_IS_TOP_LEVEL)
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
target_compile_options(mp INTERFACE
- $<BUILD_INTERFACE:-stdlib=libc++ -Wall -Wextra -Wpedantic -Werror>)
+ $<BUILD_INTERFACE:-stdlib=libc++ -Wall -Wextra -Wpedantic>)
target_link_options(mp INTERFACE $<BUILD_INTERFACE:-stdlib=libc++>)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
- target_compile_options(mp INTERFACE $<BUILD_INTERFACE:-Wall -Wextra -Wpedantic -Werror>)
+ target_compile_options(mp INTERFACE $<BUILD_INTERFACE:-Wall -Wextra -Wpedantic>)
endif()
endif()