diff options
Diffstat (limited to 'ports/boost-serialization')
| -rw-r--r-- | ports/boost-serialization/portfile.cmake | 5 | ||||
| -rw-r--r-- | ports/boost-serialization/vcpkg.json | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-serialization/portfile.cmake b/ports/boost-serialization/portfile.cmake index ef6fde24c..27609925f 100644 --- a/ports/boost-serialization/portfile.cmake +++ b/ports/boost-serialization/portfile.cmake @@ -8,7 +8,10 @@ vcpkg_from_github( HEAD_REF master
)
-include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
+if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
+ message(FATAL_ERROR "boost-serialization requires a newer version of vcpkg in order to build.")
+endif()
+include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
diff --git a/ports/boost-serialization/vcpkg.json b/ports/boost-serialization/vcpkg.json index c0d201704..ffaea91bb 100644 --- a/ports/boost-serialization/vcpkg.json +++ b/ports/boost-serialization/vcpkg.json @@ -1,12 +1,16 @@ { "name": "boost-serialization", "version-string": "1.75.0", + "port-version": 1, "description": "Boost serialization module", "homepage": "https://github.com/boostorg/serialization", "dependencies": [ "boost-array", "boost-assert", - "boost-build", + { + "name": "boost-build", + "host": true + }, "boost-compatibility", "boost-config", "boost-core", @@ -15,7 +19,10 @@ "boost-integer", "boost-io", "boost-iterator", - "boost-modular-build-helper", + { + "name": "boost-modular-build-helper", + "host": true + }, "boost-move", "boost-mpl", "boost-optional", |
