aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-system
diff options
context:
space:
mode:
Diffstat (limited to 'ports/boost-system')
-rw-r--r--ports/boost-system/portfile.cmake5
-rw-r--r--ports/boost-system/vcpkg.json11
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-system/portfile.cmake b/ports/boost-system/portfile.cmake
index bf6f9ed98..e26a02be7 100644
--- a/ports/boost-system/portfile.cmake
+++ b/ports/boost-system/portfile.cmake
@@ -10,7 +10,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-system 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-system/vcpkg.json b/ports/boost-system/vcpkg.json
index df0fe9d46..f311f0c8b 100644
--- a/ports/boost-system/vcpkg.json
+++ b/ports/boost-system/vcpkg.json
@@ -1,13 +1,20 @@
{
"name": "boost-system",
"version-string": "1.75.0",
+ "port-version": 1,
"description": "Boost system module",
"homepage": "https://github.com/boostorg/system",
"dependencies": [
- "boost-build",
+ {
+ "name": "boost-build",
+ "host": true
+ },
"boost-config",
"boost-integer",
- "boost-modular-build-helper",
+ {
+ "name": "boost-modular-build-helper",
+ "host": true
+ },
"boost-vcpkg-helpers",
"boost-winapi"
]