From 61059cafa0dd4a2f4545e26558f78cd791068cef Mon Sep 17 00:00:00 2001 From: Mike Malburg Date: Mon, 17 Jun 2024 16:18:02 -0400 Subject: [PATCH] Use proper vcpkg vars for detecting build environment OS This should fix these errors: Make Warning at scripts/ports.cmake:167 (message): Unexpected UNKNOWN_READ_ACCESS on variable APPLE in script mode. This variable name insufficiently expresses whether it refers to the target system or to the host system. Use a prefixed variable instead. - Variables providing information about the host: CMAKE_HOST_ VCPKG_HOST_IS_ - Variables providing information about the target: VCPKG_TARGET_IS_ VCPKG_DETECTED_ (using vcpkg_cmake_get_vars) Call Stack (most recent call first): C:/code/ThirdParty-Packages-vcpkg/custom-ports/whispercpp-basic/portfile.cmake:2147483647 (z_vcpkg_warn_ambiguous_system_variables) --- custom-ports/whispercpp-basic/portfile.cmake | 2 +- custom-ports/whispercpp/portfile.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom-ports/whispercpp-basic/portfile.cmake b/custom-ports/whispercpp-basic/portfile.cmake index 7ccb090..d0fc852 100644 --- a/custom-ports/whispercpp-basic/portfile.cmake +++ b/custom-ports/whispercpp-basic/portfile.cmake @@ -9,7 +9,7 @@ vcpkg_from_github( 0001-UpdateTargetName.patch ) -if(APPLE) +if(VCPKG_HOST_IS_OSX) vcpkg_cmake_configure( SOURCE_PATH ${SOURCE_PATH} OPTIONS diff --git a/custom-ports/whispercpp/portfile.cmake b/custom-ports/whispercpp/portfile.cmake index 2d3f6eb..68b7ea4 100644 --- a/custom-ports/whispercpp/portfile.cmake +++ b/custom-ports/whispercpp/portfile.cmake @@ -7,7 +7,7 @@ vcpkg_from_github( HEAD_REF master ) -if(APPLE) +if(VCPKG_HOST_IS_OSX) vcpkg_cmake_configure( SOURCE_PATH ${SOURCE_PATH} OPTIONS