diff options
Diffstat (limited to 'ports/boost-graph')
| -rw-r--r-- | ports/boost-graph/portfile.cmake | 5 | ||||
| -rw-r--r-- | ports/boost-graph/vcpkg.json | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-graph/portfile.cmake b/ports/boost-graph/portfile.cmake index 26767b93f..2978a9d0f 100644 --- a/ports/boost-graph/portfile.cmake +++ b/ports/boost-graph/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-graph 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-graph/vcpkg.json b/ports/boost-graph/vcpkg.json index 38ac4f6d0..c4c8bf116 100644 --- a/ports/boost-graph/vcpkg.json +++ b/ports/boost-graph/vcpkg.json @@ -1,6 +1,7 @@ { "name": "boost-graph", "version-string": "1.75.0", + "port-version": 1, "description": "Boost graph module", "homepage": "https://github.com/boostorg/graph", "dependencies": [ @@ -10,7 +11,10 @@ "boost-assert", "boost-bimap", "boost-bind", - "boost-build", + { + "name": "boost-build", + "host": true + }, "boost-compatibility", "boost-concept-check", "boost-config", @@ -24,7 +28,10 @@ "boost-iterator", "boost-lexical-cast", "boost-math", - "boost-modular-build-helper", + { + "name": "boost-modular-build-helper", + "host": true + }, "boost-move", "boost-mpl", "boost-multi-index", |
