Skip to content

Commit

Permalink
[bit7z] compile option without warnings as errors (microsoft#43005)
Browse files Browse the repository at this point in the history
Signed-off-by: l.feng <[email protected]>
Co-authored-by: Cheney Wang <[email protected]>
  • Loading branch information
msclock and Cheney-W authored Dec 30, 2024
1 parent 0660e5e commit 521abc5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ports/bit7z/fix_compile_options.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/cmake/CompilerOptions.cmake b/cmake/CompilerOptions.cmake
index 1cdb84f..fd9346f 100644
--- a/cmake/CompilerOptions.cmake
+++ b/cmake/CompilerOptions.cmake
@@ -70,7 +70,7 @@ if( MSVC )
endforeach()
endif()
else()
- target_compile_options( ${LIB_TARGET} PRIVATE -Wall -Wextra -Werror -Wconversion -Wsign-conversion )
+ target_compile_options( ${LIB_TARGET} PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion )
endif()

# Extra warning flags for Clang
1 change: 1 addition & 0 deletions ports/bit7z/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ vcpkg_from_github(
PATCHES
fix_install.patch
fix_dependency.patch
fix_compile_options.patch
)

file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-bit7z-config.cmake.in" DESTINATION "${SOURCE_PATH}")
Expand Down
1 change: 1 addition & 0 deletions ports/bit7z/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "bit7z",
"version": "4.0.9",
"port-version": 1,
"description": "A C++ static library offering a clean and simple interface to the 7-zip shared libraries.",
"homepage": "https://github.com/rikyoz/bit7z",
"license": "MPL-2.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/bit7z.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "761234aa0ad3687fccc86bf939350659f9d137d6",
"version": "4.0.9",
"port-version": 1
},
{
"git-tree": "88073b4adf36aa5b939b9565ec299084e3162e8b",
"version": "4.0.9",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@
},
"bit7z": {
"baseline": "4.0.9",
"port-version": 0
"port-version": 1
},
"bitmagic": {
"baseline": "7.13.4",
Expand Down

0 comments on commit 521abc5

Please sign in to comment.