diff --git a/ports/redis-plus-plus/portfile.cmake b/ports/redis-plus-plus/portfile.cmake index 7e97b03231..ace6b27f6a 100644 --- a/ports/redis-plus-plus/portfile.cmake +++ b/ports/redis-plus-plus/portfile.cmake @@ -1,8 +1,8 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO sewenew/redis-plus-plus - REF df522812ba4114f1dd3386b81afc2369c82b717d # 1.2.3 - SHA512 2ac59c5416ba85a60061d941787cb3bc2e43042ca0a53829f866448015ed6800c38ecbde3319d9756a70bfba2860732136d89d296382a6b9a675bbe32173f22b + REF cff6ab8d8557a113ad97dfb779eb46647f7c92c7 # 1.3.1 + SHA512 2bd179f47b13d05d58358ddf1aeef93fbc9e748a12f07fa5bd59fd75adcf7f3261d5f871d8fd33628d2d9df04e341ed24314fc2e817887ba0079e2711b5da317 HEAD_REF master PATCHES fix-ws2-linking-windows.patch @@ -15,17 +15,11 @@ else() set(REDIS_PLUS_PLUS_CXX_STANDARD 11) endif() -if (VCPKG_LIBRARY_LINKAGE STREQUAL static) - set(REDIS_PLUS_PLUS_BUILD_STATIC ON) - set(REDIS_PLUS_PLUS_BUILD_SHARED OFF) -else() - set(REDIS_PLUS_PLUS_BUILD_STATIC OFF) - set(REDIS_PLUS_PLUS_BUILD_SHARED ON) -endif() +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" REDIS_PLUS_PLUS_BUILD_STATIC) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" REDIS_PLUS_PLUS_BUILD_SHARED) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DREDIS_PLUS_PLUS_USE_TLS=OFF -DREDIS_PLUS_PLUS_BUILD_STATIC=${REDIS_PLUS_PLUS_BUILD_STATIC} @@ -34,11 +28,11 @@ vcpkg_configure_cmake( -DREDIS_PLUS_PLUS_CXX_STANDARD=${REDIS_PLUS_PLUS_CXX_STANDARD} ) -vcpkg_install_cmake() +vcpkg_cmake_install() vcpkg_copy_pdbs() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") # Handle copyright diff --git a/ports/redis-plus-plus/vcpkg.json b/ports/redis-plus-plus/vcpkg.json index 0e61b5d843..b67b176b7c 100644 --- a/ports/redis-plus-plus/vcpkg.json +++ b/ports/redis-plus-plus/vcpkg.json @@ -1,10 +1,18 @@ { "name": "redis-plus-plus", - "version-semver": "1.2.3", + "version-semver": "1.3.1", "description": "This is a C++ client for Redis. It's based on hiredis, and written in C++ 11", "homepage": "https://github.com/sewenew/redis-plus-plus", "dependencies": [ - "hiredis" + "hiredis", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } ], "features": { "cxx17": { diff --git a/versions/baseline.json b/versions/baseline.json index e119e5b6ac..b289975a8b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5749,7 +5749,7 @@ "port-version": 4 }, "redis-plus-plus": { - "baseline": "1.2.3", + "baseline": "1.3.1", "port-version": 0 }, "refl-cpp": { diff --git a/versions/r-/redis-plus-plus.json b/versions/r-/redis-plus-plus.json index 197df5c2ab..02919e2fd4 100644 --- a/versions/r-/redis-plus-plus.json +++ b/versions/r-/redis-plus-plus.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a8bbde067a459c4fff18d7c63eb682487f1955e5", + "version-semver": "1.3.1", + "port-version": 0 + }, { "git-tree": "6a76da721b6b5c1820ccf60184f1c0aa44af788d", "version-semver": "1.2.3",