summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-11-20 12:25:56 -0800
committerThiago Macieira <thiago.macieira@intel.com>2022-11-28 10:58:18 -0800
commit80847a0f4c15c2a80d319b6148e89f71d84a8d6a (patch)
tree0d5701469b5417e28a8bf592842a9a7069f818fd /src
parent4234ce12dc819b9ca76c8dc4c251f5bd4fe0bc9c (diff)
CMake: move the qversiontagging files into the main file listing
Simplifies the code a little. Change-Id: Id8e48e8f498c4a029619fffd172964ca391d16d5 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt
index e8be8fab98..5d9c7a9828 100644
--- a/src/corelib/CMakeLists.txt
+++ b/src/corelib/CMakeLists.txt
@@ -38,6 +38,9 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/QtInstallPaths.cmake.in"
## Core Module:
#####################################################################
+set(core_version_tagging_files
+ global/qversiontagging.cpp
+ global/qversiontagging.h)
qt_internal_add_module(Core
QMAKE_MODULE_CONFIG moc resources
NO_GENERATE_METATYPES # metatypes are extracted manually below
@@ -94,6 +97,7 @@ qt_internal_add_module(Core
global/qtversionchecks.h
global/qtypeinfo.h
global/qtypes.cpp global/qtypes.h
+ ${core_version_tagging_files}
global/qvolatile_p.h
global/q20algorithm.h
global/q20functional.h
@@ -662,9 +666,6 @@ qt_internal_extend_target(Core CONDITION QT_FEATURE_journald
PkgConfig::Libsystemd
)
-set(core_version_tagging_files global/qversiontagging.cpp global/qversiontagging.h)
-target_sources(Core PRIVATE ${core_version_tagging_files})
-
# Disable LTO, as the symbols disappear somehow under GCC
# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200)
if(GCC)