diff options
Diffstat (limited to 'ports/boost-python/portfile.cmake')
| -rw-r--r-- | ports/boost-python/portfile.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/boost-python/portfile.cmake b/ports/boost-python/portfile.cmake index 92fa8d184..9293a86f8 100644 --- a/ports/boost-python/portfile.cmake +++ b/ports/boost-python/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-python 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"
|
