summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-01-19 15:34:44 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-01-20 14:03:45 +0000
commitdf788cca8bb4bc85e9b2d78aa6afe165f5ce30e5 (patch)
tree592788841797eabffc2908ca998e2b986e658414 /src
parent15576c961047231a49afda9b9ee0159ba132c0ae (diff)
Generate Qt6EntryPointAdditionalTargetInfo independent of platform
Move AdditionalTargetInfo generation for EntryPoint target out of WIN32 specific block Fixes: QTBUG-90414 Change-Id: I8dc34c939f12ef2073de630d4440a0892d8be909 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 32734f351b076b8774c490c27ef18ddd2243dcaf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/entrypoint/CMakeLists.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/entrypoint/CMakeLists.txt b/src/entrypoint/CMakeLists.txt
index e12ed39544..801691b4e5 100644
--- a/src/entrypoint/CMakeLists.txt
+++ b/src/entrypoint/CMakeLists.txt
@@ -20,6 +20,7 @@ qt_internal_add_module(EntryPoint
NO_ADDITIONAL_TARGET_INFO
)
+set(export_targets EntryPoint)
# We don't need any include paths or default module defines
set_target_properties(EntryPoint PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ""
@@ -38,6 +39,8 @@ if(using_entrypoint_library)
$<TARGET_PROPERTY:Qt::Core,INTERFACE_INCLUDE_DIRECTORIES>
)
+ list(APPEND export_targets EntryPointImplementation)
+
set_target_properties(EntryPointImplementation PROPERTIES
OUTPUT_NAME "${INSTALL_CMAKE_NAMESPACE}EntryPoint${QT_LIBINFIX}"
ARCHIVE_OUTPUT_DIRECTORY "${QT_BUILD_DIR}/${INSTALL_LIBDIR}"
@@ -102,13 +105,13 @@ QT.entrypoint_implementation.module_config = staticlib v2 internal_module
set(export_name "${INSTALL_CMAKE_NAMESPACE}EntryPointTargets")
qt_install(TARGETS EntryPointImplementation EXPORT ${export_name})
qt_generate_prl_file(EntryPointImplementation "${INSTALL_LIBDIR}")
-
- set(export_name_prefix "${INSTALL_CMAKE_NAMESPACE}EntryPoint")
- qt_path_join(config_install_dir ${QT_CONFIG_INSTALL_DIR} ${export_name_prefix})
- qt_internal_export_additional_targets_file(
- TARGETS EntryPoint EntryPointImplementation
- EXPORT_NAME_PREFIX ${export_name_prefix}
- CONFIG_INSTALL_DIR "${config_install_dir}")
endif()
+set(export_name_prefix "${INSTALL_CMAKE_NAMESPACE}EntryPoint")
+qt_path_join(config_install_dir ${QT_CONFIG_INSTALL_DIR} ${export_name_prefix})
+qt_internal_export_additional_targets_file(
+ TARGETS ${export_targets}
+ EXPORT_NAME_PREFIX ${export_name_prefix}
+ CONFIG_INSTALL_DIR "${config_install_dir}")
+
# special case end