diff options
Diffstat (limited to 'ports/boost-atomic')
| -rw-r--r-- | ports/boost-atomic/portfile.cmake | 5 | ||||
| -rw-r--r-- | ports/boost-atomic/vcpkg.json | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/boost-atomic/portfile.cmake b/ports/boost-atomic/portfile.cmake index a38e389fa..01ec56744 100644 --- a/ports/boost-atomic/portfile.cmake +++ b/ports/boost-atomic/portfile.cmake @@ -16,7 +16,10 @@ string(REPLACE file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/build/config")
-include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
+if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
+ message(FATAL_ERROR "boost-atomic 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-atomic/vcpkg.json b/ports/boost-atomic/vcpkg.json index a1973a0a1..037194b3d 100644 --- a/ports/boost-atomic/vcpkg.json +++ b/ports/boost-atomic/vcpkg.json @@ -1,15 +1,22 @@ { "name": "boost-atomic", "version-string": "1.75.0", + "port-version": 1, "description": "Boost atomic module", "homepage": "https://github.com/boostorg/atomic", "dependencies": [ "boost-align", "boost-assert", - "boost-build", + { + "name": "boost-build", + "host": true + }, "boost-config", "boost-integer", - "boost-modular-build-helper", + { + "name": "boost-modular-build-helper", + "host": true + }, "boost-predef", "boost-preprocessor", "boost-static-assert", |
