aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-thread
diff options
context:
space:
mode:
Diffstat (limited to 'ports/boost-thread')
-rw-r--r--ports/boost-thread/portfile.cmake5
-rw-r--r--ports/boost-thread/vcpkg.json11
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-thread/portfile.cmake b/ports/boost-thread/portfile.cmake
index 17c620ec4..f16abdf67 100644
--- a/ports/boost-thread/portfile.cmake
+++ b/ports/boost-thread/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-thread 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}
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
diff --git a/ports/boost-thread/vcpkg.json b/ports/boost-thread/vcpkg.json
index 5cc1d3b32..be64e494b 100644
--- a/ports/boost-thread/vcpkg.json
+++ b/ports/boost-thread/vcpkg.json
@@ -1,6 +1,7 @@
{
"name": "boost-thread",
"version-string": "1.75.0",
+ "port-version": 1,
"description": "Boost thread module",
"homepage": "https://github.com/boostorg/thread",
"dependencies": [
@@ -8,7 +9,10 @@
"boost-assert",
"boost-atomic",
"boost-bind",
- "boost-build",
+ {
+ "name": "boost-build",
+ "host": true
+ },
"boost-chrono",
"boost-concept-check",
"boost-config",
@@ -24,7 +28,10 @@
"boost-io",
"boost-lexical-cast",
"boost-math",
- "boost-modular-build-helper",
+ {
+ "name": "boost-modular-build-helper",
+ "host": true
+ },
"boost-move",
"boost-optional",
"boost-predef",