Skip to content

Commit

Permalink
[msgpack] update version to 6.0.0 and switch to the C++ branch (#30401)
Browse files Browse the repository at this point in the history
* [msgpack] update version to 6.0.0 and switch to the C++ branch

* update version

* update

* version

* fix cmake config name

* vdb

* fix coolprop

* v db

* add dependencies

* format

* v db
  • Loading branch information
FrankXie05 committed Apr 3, 2023
1 parent 6591bd9 commit b619a23
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 12 deletions.
9 changes: 5 additions & 4 deletions ports/coolprop/fix-dependency.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 414f380..619dfeb 100644
index 7bbf8d6..617ac93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -247,13 +247,10 @@ list(REMOVE_ITEM APP_SOURCES
@@ -247,13 +247,11 @@ list(REMOVE_ITEM APP_SOURCES
list(REMOVE_ITEM APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/CoolPropLib.cpp")

set(APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}")
Expand All @@ -14,9 +14,10 @@ index 414f380..619dfeb 100644
-list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/fmtlib"
-)# should be deprecated
+find_package(Eigen3 CONFIG REQUIRED)
+find_package(msgpack CONFIG REQUIRED)
+find_package(msgpack-cxx CONFIG REQUIRED)
+find_package(fmt CONFIG REQUIRED)
+link_libraries(Eigen3::Eigen fmt::fmt msgpackc-cxx)
+link_libraries(Eigen3::Eigen fmt::fmt)
+include_directories(msgpackc-cxx)
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")

1 change: 1 addition & 0 deletions ports/coolprop/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "coolprop",
"version-semver": "6.4.3",
"port-version": 1,
"description": "Thermophysical properties for the masses",
"homepage": "https://github.com/CoolProp/CoolProp",
"license": "MIT",
Expand Down
8 changes: 4 additions & 4 deletions ports/msgpack/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO msgpack/msgpack-c
REF cpp-4.1.3
SHA512 1252a2d61b119e9a8db6cc3667d2ae3234784d6607e2d08b836ab2f561455aa8c14ac134de0e8bb47f85a9fa86a9b325babd0a5a437daa0f270143d07738adcf
HEAD_REF master
REF cpp-6.0.0
SHA512 6f2ec74562f30d12ba81659737c412317848eb27fbc607a2f4f8da4b75534fbfba7d280a5af6fdae3581a6a2582e6cf06d7fbfacc3bdee1174456817dd9f7e30
HEAD_REF cpp_master
)

vcpkg_cmake_configure(
Expand All @@ -20,7 +20,7 @@ vcpkg_cmake_configure(

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME msgpackc-cxx CONFIG_PATH lib/cmake/msgpackc-cxx)
vcpkg_cmake_config_fixup(PACKAGE_NAME msgpack-cxx CONFIG_PATH lib/cmake/msgpack-cxx)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
Expand Down
7 changes: 5 additions & 2 deletions ports/msgpack/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "msgpack",
"version": "4.1.3",
"version": "6.0.0",
"description": "MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.",
"homepage": "https://github.com/msgpack/msgpack-c",
"license": "BSL-1.0",
"dependencies": [
"boost",
"boost-fusion",
"boost-numeric-conversion",
"boost-optional",
"boost-variant",
{
"name": "vcpkg-cmake",
"host": true
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@
},
"coolprop": {
"baseline": "6.4.3",
"port-version": 0
"port-version": 1
},
"coroutine": {
"baseline": "1.5.0",
Expand Down Expand Up @@ -5305,7 +5305,7 @@
"port-version": 0
},
"msgpack": {
"baseline": "4.1.3",
"baseline": "6.0.0",
"port-version": 0
},
"msgpack-c": {
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/coolprop.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b0bdc5514d6d96d6767c50a09840b164fbf86d93",
"version-semver": "6.4.3",
"port-version": 1
},
{
"git-tree": "ecf4aa81e29286ea194307b2379ef1fd0e3e311f",
"version-semver": "6.4.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/m-/msgpack.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fc124bda56c5eca176379c3e17f9c2f2d63bbdd9",
"version": "6.0.0",
"port-version": 0
},
{
"git-tree": "006d17cf08d5bb92fdb2f4bf33ba97d18cbcc090",
"version": "4.1.3",
Expand Down

0 comments on commit b619a23

Please sign in to comment.