aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-program-options
diff options
context:
space:
mode:
Diffstat (limited to 'ports/boost-program-options')
-rw-r--r--ports/boost-program-options/portfile.cmake5
-rw-r--r--ports/boost-program-options/vcpkg.json11
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-program-options/portfile.cmake b/ports/boost-program-options/portfile.cmake
index 87f2f2b6e..4b1d8bd07 100644
--- a/ports/boost-program-options/portfile.cmake
+++ b/ports/boost-program-options/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-program-options 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-program-options/vcpkg.json b/ports/boost-program-options/vcpkg.json
index 2846e5610..ebad7f23e 100644
--- a/ports/boost-program-options/vcpkg.json
+++ b/ports/boost-program-options/vcpkg.json
@@ -1,12 +1,16 @@
{
"name": "boost-program-options",
"version-string": "1.75.0",
+ "port-version": 1,
"description": "Boost program_options module",
"homepage": "https://github.com/boostorg/program_options",
"dependencies": [
"boost-any",
"boost-bind",
- "boost-build",
+ {
+ "name": "boost-build",
+ "host": true
+ },
"boost-compatibility",
"boost-config",
"boost-core",
@@ -15,7 +19,10 @@
"boost-iterator",
"boost-lexical-cast",
"boost-math",
- "boost-modular-build-helper",
+ {
+ "name": "boost-modular-build-helper",
+ "host": true
+ },
"boost-smart-ptr",
"boost-static-assert",
"boost-throw-exception",