diff options
Diffstat (limited to 'config.tests/separate_debug_info')
-rw-r--r-- | config.tests/separate_debug_info/CMakeLists.txt | 10 | ||||
-rw-r--r-- | config.tests/separate_debug_info/main.cpp | 2 | ||||
-rw-r--r-- | config.tests/separate_debug_info/separate_debug_info.pro | 7 |
3 files changed, 8 insertions, 11 deletions
diff --git a/config.tests/separate_debug_info/CMakeLists.txt b/config.tests/separate_debug_info/CMakeLists.txt index 1b98c0dab0..1b38d23e25 100644 --- a/config.tests/separate_debug_info/CMakeLists.txt +++ b/config.tests/separate_debug_info/CMakeLists.txt @@ -1,11 +1,13 @@ -# special case skip regeneration -cmake_minimum_required(VERSION 3.14.0) +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +cmake_minimum_required(VERSION 3.16) project(objcopytest LANGUAGES CXX) -include(CMakeFindBinUtils) add_executable(objcopytest main.cpp) add_custom_command( TARGET objcopytest POST_BUILD COMMAND ${CMAKE_OBJCOPY} --only-keep-debug $<TARGET_FILE:objcopytest> objcopytest.debug COMMAND ${CMAKE_OBJCOPY} --strip-debug $<TARGET_FILE:objcopytest> - COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=objcopytest.debug $<TARGET_FILE:objcopytest>) + COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=objcopytest.debug $<TARGET_FILE:objcopytest> + VERBATIM) diff --git a/config.tests/separate_debug_info/main.cpp b/config.tests/separate_debug_info/main.cpp index 237c8ce181..085864129a 100644 --- a/config.tests/separate_debug_info/main.cpp +++ b/config.tests/separate_debug_info/main.cpp @@ -1 +1,3 @@ +// Copyright (C) 2024 The Qt Company Ltd. +// SPDX-License-Identifier: BSD-3-Clause int main() {} diff --git a/config.tests/separate_debug_info/separate_debug_info.pro b/config.tests/separate_debug_info/separate_debug_info.pro deleted file mode 100644 index 577aa734d6..0000000000 --- a/config.tests/separate_debug_info/separate_debug_info.pro +++ /dev/null @@ -1,7 +0,0 @@ -TARGET = objcopytest -SOURCES += main.cpp -load(resolve_target) -QMAKE_POST_LINK += \ - $$QMAKE_OBJCOPY --only-keep-debug $$QMAKE_RESOLVED_TARGET objcopytest.debug && \ - $$QMAKE_OBJCOPY --strip-debug $$QMAKE_RESOLVED_TARGET && \ - $$QMAKE_OBJCOPY --add-gnu-debuglink=objcopytest.debug $$QMAKE_RESOLVED_TARGET |