]> git.ipfire.org Git - thirdparty/curl.git/commit
OtherTests.cmake: check for cross-compile, not for toolchain
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Nov 2022 07:16:46 +0000 (08:16 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 16 Nov 2022 15:05:44 +0000 (16:05 +0100)
commit14d5589032d5330a3d8716a9f59b85951514412d
tree609614cc1550aa2f350a0b80cc5c91cf85c20485
parentdf00df1e60053886a0f4483ae9f07dabc734361c
OtherTests.cmake: check for cross-compile, not for toolchain

Build systems like vcpkg alway sets `CMAKE_TOOLCHAIN_FILE` so it should
not be used as a sign that this is a cross-compile.

Also indented the function correctly.

Reported-by: Philip Chan
Fixes #9921
Closes #9923
CMake/OtherTests.cmake