aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorautoantwort <41973254+autoantwort@users.noreply.github.com>2021-04-07 21:51:40 +0200
committerGitHub <noreply@github.com>2021-04-07 12:51:40 -0700
commite8b9eca6b1e84c7776c44a6b9e41bd501660e714 (patch)
treeb724ed425bf20c813a47d82055f4bc3f1d4ea9ff /scripts
parenta5ab7c382d1de0efa3d6b1b6ff28cedb45b91230 (diff)
downloadvcpkg-e8b9eca6b1e84c7776c44a6b9e41bd501660e714.tar.gz
vcpkg-e8b9eca6b1e84c7776c44a6b9e41bd501660e714.zip
fix VCPKG_CROSSCOMPILING (#17068)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_common_definitions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_common_definitions.cmake b/scripts/cmake/vcpkg_common_definitions.cmake
index 6d2b6df5b..1cf2567f7 100644
--- a/scripts/cmake/vcpkg_common_definitions.cmake
+++ b/scripts/cmake/vcpkg_common_definitions.cmake
@@ -30,7 +30,7 @@ Furthermore the variables CMAKE_FIND_LIBRARY_(PREFIXES|SUFFIXES) are also define
portfiles are able to use find_library calls to discover dependent libraries within the current triplet for ports.
#]===]
-string(COMPARE EQUAL "${TARGET_TRIPLET}" "${HOST_TRIPLET}" VCPKG_CROSSCOMPILING)
+string(COMPARE NOTEQUAL "${TARGET_TRIPLET}" "${HOST_TRIPLET}" VCPKG_CROSSCOMPILING)
#Helper variable to identify the Target system. VCPKG_TARGET_IS_<targetname>
if (NOT DEFINED VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "")
set(VCPKG_TARGET_IS_WINDOWS ON)