aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/get_triplet_environment.cmake4
-rw-r--r--scripts/ports.cmake1
-rw-r--r--toolsrc/src/vcpkg/build.cpp1
3 files changed, 4 insertions, 2 deletions
diff --git a/scripts/get_triplet_environment.cmake b/scripts/get_triplet_environment.cmake
index e561492de..f76054556 100644
--- a/scripts/get_triplet_environment.cmake
+++ b/scripts/get_triplet_environment.cmake
@@ -1,6 +1,6 @@
include(${CMAKE_TRIPLET_FILE})
-if (DEFINED CMAKE_PORTFILE_SETTINGS)
- include(${CMAKE_PORTFILE_SETTINGS} OPTIONAL)
+if (DEFINED CMAKE_PORT_SETTINGS)
+ include(${CMAKE_PORT_SETTINGS} OPTIONAL)
endif()
# GUID used as a flag - "cut here line"
diff --git a/scripts/ports.cmake b/scripts/ports.cmake
index 860d08893..0c33fdffc 100644
--- a/scripts/ports.cmake
+++ b/scripts/ports.cmake
@@ -67,6 +67,7 @@ if(CMD MATCHES "^BUILD$")
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR} ${CURRENT_PACKAGES_DIR})
include(${CMAKE_TRIPLET_FILE})
+ include(${CMAKE_PORT_SETTINGS} OPTIONAL)
set(TRIPLET_SYSTEM_ARCH ${VCPKG_TARGET_ARCHITECTURE})
include(${CMAKE_CURRENT_LIST_DIR}/cmake/vcpkg_common_definitions.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/vcpkg_common_functions.cmake)
diff --git a/toolsrc/src/vcpkg/build.cpp b/toolsrc/src/vcpkg/build.cpp
index 646da7398..03e0c0b1d 100644
--- a/toolsrc/src/vcpkg/build.cpp
+++ b/toolsrc/src/vcpkg/build.cpp
@@ -401,6 +401,7 @@ namespace vcpkg::Build
{"CURRENT_PORT_DIR", config.port_dir},
{"TARGET_TRIPLET", triplet.canonical_name()},
{"TARGET_TRIPLET_FILE", paths.get_triplet_file_path(triplet).u8string()},
+ {"CMAKE_PORT_SETTINGS", config.port_dir / "port_settings.cmake"},
{"VCPKG_PLATFORM_TOOLSET", toolset.version.c_str()},
{"VCPKG_USE_HEAD_VERSION", Util::Enum::to_bool(config.build_package_options.use_head_version) ? "1" : "0"},
{"DOWNLOADS", paths.downloads},