summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-09-28 10:51:25 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-09-29 10:45:11 +0200
commit9bfeb9c88b1b7e18bbc8b2a1d5e7712fd1d75393 (patch)
treea2da77f78c5e3d35363636565b97036983cea569 /config.tests
parentcd0b711017330146110baee4bd80ac61a1bd55cf (diff)
Fix separate_debug_info configure test for cross-compilation
The separate_debug_info configure test uses the CMake variable CMAKE_OBJCOPY. CMakeFindBinUtils in the test project finds the host's objcopy despite CMAKE_TOOLCHAIN_FILE being correctly set. We now add CMAKE_OBJCOPY to the list of variables that are passed to configure test projects and remove the CMakeFindBinUtils include, which looks rather internal anyways. Fixes: QTBUG-96798 Change-Id: I164c6bd1771e8789e9dd19b50573b33b8866bd3b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 5ef0e3435ee00fc5b975fb2f2e9100d98542e591)
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/separate_debug_info/CMakeLists.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.tests/separate_debug_info/CMakeLists.txt b/config.tests/separate_debug_info/CMakeLists.txt
index 94b90f08d2..c23b57566e 100644
--- a/config.tests/separate_debug_info/CMakeLists.txt
+++ b/config.tests/separate_debug_info/CMakeLists.txt
@@ -1,7 +1,6 @@
# special case skip regeneration
cmake_minimum_required(VERSION 3.16)
project(objcopytest LANGUAGES CXX)
-include(CMakeFindBinUtils)
add_executable(objcopytest main.cpp)
add_custom_command(
TARGET objcopytest