aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-random
diff options
context:
space:
mode:
Diffstat (limited to 'ports/boost-random')
-rw-r--r--ports/boost-random/portfile.cmake5
-rw-r--r--ports/boost-random/vcpkg.json11
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-random/portfile.cmake b/ports/boost-random/portfile.cmake
index 008da4e3d..fe0763aa0 100644
--- a/ports/boost-random/portfile.cmake
+++ b/ports/boost-random/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-random 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-random/vcpkg.json b/ports/boost-random/vcpkg.json
index cb45186a9..5a67fca81 100644
--- a/ports/boost-random/vcpkg.json
+++ b/ports/boost-random/vcpkg.json
@@ -1,11 +1,15 @@
{
"name": "boost-random",
"version-string": "1.75.0",
+ "port-version": 1,
"description": "Boost random module",
"homepage": "https://github.com/boostorg/random",
"dependencies": [
"boost-assert",
- "boost-build",
+ {
+ "name": "boost-build",
+ "host": true
+ },
"boost-compatibility",
"boost-config",
"boost-core",
@@ -14,7 +18,10 @@
"boost-integer",
"boost-io",
"boost-math",
- "boost-modular-build-helper",
+ {
+ "name": "boost-modular-build-helper",
+ "host": true
+ },
"boost-multiprecision",
"boost-range",
"boost-static-assert",