diff options
Diffstat (limited to 'ports/boost-math')
| -rw-r--r-- | ports/boost-math/portfile.cmake | 5 | ||||
| -rw-r--r-- | ports/boost-math/vcpkg.json | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-math/portfile.cmake b/ports/boost-math/portfile.cmake index b25655241..b5a1f2b39 100644 --- a/ports/boost-math/portfile.cmake +++ b/ports/boost-math/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-math 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-math/vcpkg.json b/ports/boost-math/vcpkg.json index 023e46369..bce6096a2 100644 --- a/ports/boost-math/vcpkg.json +++ b/ports/boost-math/vcpkg.json @@ -1,6 +1,7 @@ { "name": "boost-math", "version-string": "1.75.0", + "port-version": 1, "description": "Boost math module", "homepage": "https://github.com/boostorg/math", "dependencies": [ @@ -8,7 +9,10 @@ "boost-array", "boost-assert", "boost-atomic", - "boost-build", + { + "name": "boost-build", + "host": true + }, "boost-compatibility", "boost-concept-check", "boost-config", @@ -18,7 +22,10 @@ "boost-integer", "boost-lambda", "boost-lexical-cast", - "boost-modular-build-helper", + { + "name": "boost-modular-build-helper", + "host": true + }, "boost-mp11", "boost-mpl", "boost-predef", |
