aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-coroutine
diff options
context:
space:
mode:
Diffstat (limited to 'ports/boost-coroutine')
-rw-r--r--ports/boost-coroutine/portfile.cmake5
-rw-r--r--ports/boost-coroutine/vcpkg.json11
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-coroutine/portfile.cmake b/ports/boost-coroutine/portfile.cmake
index 1ab75e65d..e65e5d422 100644
--- a/ports/boost-coroutine/portfile.cmake
+++ b/ports/boost-coroutine/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-coroutine 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-coroutine/vcpkg.json b/ports/boost-coroutine/vcpkg.json
index 42dde92ab..1f8336137 100644
--- a/ports/boost-coroutine/vcpkg.json
+++ b/ports/boost-coroutine/vcpkg.json
@@ -1,12 +1,16 @@
{
"name": "boost-coroutine",
"version-string": "1.75.0",
+ "port-version": 1,
"description": "Boost coroutine module",
"homepage": "https://github.com/boostorg/coroutine",
"supports": "!arm & !uwp & !emscripten",
"dependencies": [
"boost-assert",
- "boost-build",
+ {
+ "name": "boost-build",
+ "host": true
+ },
"boost-config",
{
"name": "boost-context",
@@ -16,7 +20,10 @@
"boost-detail",
"boost-exception",
"boost-integer",
- "boost-modular-build-helper",
+ {
+ "name": "boost-modular-build-helper",
+ "host": true
+ },
"boost-move",
"boost-system",
"boost-thread",