Skip to content

Commit

Permalink
[tacopie] Fix build for mingw (microsoft#34850)
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd authored Nov 2, 2023
1 parent 9fb19af commit 521995e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions ports/tacopie/fix-mingw-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,7 @@ project(${PROJECT} CXX)
###
# compilation options
###
-IF (WIN32)
+IF (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /O2 /bigobj")

# was causing conflics with gtest build
1 change: 1 addition & 0 deletions ports/tacopie/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ vcpkg_from_github(
PATCHES
fix-cmakelists.patch
fix-export.patch
fix-mingw-build.patch
)

if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
Expand Down
2 changes: 1 addition & 1 deletion ports/tacopie/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tacopie",
"version": "3.2.0",
"port-version": 5,
"port-version": 6,
"description": "Tacopie is a TCP Client & Server C++11 library",
"homepage": "https://github.com/cpp-redis/tacopie",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8222,7 +8222,7 @@
},
"tacopie": {
"baseline": "3.2.0",
"port-version": 5
"port-version": 6
},
"taglib": {
"baseline": "1.13.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tacopie.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dc2035636502588b6cdac9c4d58c5f7b6c03c76a",
"version": "3.2.0",
"port-version": 6
},
{
"git-tree": "e9f280c1d8b799fd2b5617955348dd299b246c86",
"version": "3.2.0",
Expand Down

0 comments on commit 521995e

Please sign in to comment.