vcpkg/ports/crossguid/warnings.patch

21 lines
579 B
Diff
Raw Normal View History

2022-01-19 05:07:55 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 76b5a62..174d981 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,15 +40,6 @@ else()
target_compile_definitions(crossguid PRIVATE GUID_LIBUUID)
endif()
-if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
- set(WARNINGS "-Werror" "-Wall")
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- set(WARNINGS "-Werror" "-Wall")
-elseif(MSVC)
- set(WARNINGS "/WX" "/W4")
-endif()
-target_compile_options(crossguid PRIVATE ${WARNINGS})
-
set_target_properties(crossguid
PROPERTIES
VERSION ${PROJECT_VERSION}