aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'ports/boost-filesystem')
-rw-r--r--ports/boost-filesystem/portfile.cmake5
-rw-r--r--ports/boost-filesystem/vcpkg.json11
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-filesystem/portfile.cmake b/ports/boost-filesystem/portfile.cmake
index 4efe36a63..e1bc985ea 100644
--- a/ports/boost-filesystem/portfile.cmake
+++ b/ports/boost-filesystem/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-filesystem 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-filesystem/vcpkg.json b/ports/boost-filesystem/vcpkg.json
index 2e07c445a..dd89855ee 100644
--- a/ports/boost-filesystem/vcpkg.json
+++ b/ports/boost-filesystem/vcpkg.json
@@ -1,12 +1,16 @@
{
"name": "boost-filesystem",
"version-string": "1.75.0",
+ "port-version": 1,
"description": "Boost filesystem module",
"homepage": "https://github.com/boostorg/filesystem",
"supports": "!uwp",
"dependencies": [
"boost-assert",
- "boost-build",
+ {
+ "name": "boost-build",
+ "host": true
+ },
"boost-config",
"boost-core",
"boost-detail",
@@ -14,7 +18,10 @@
"boost-integer",
"boost-io",
"boost-iterator",
- "boost-modular-build-helper",
+ {
+ "name": "boost-modular-build-helper",
+ "host": true
+ },
"boost-predef",
"boost-smart-ptr",
"boost-system",