Stop trying to create config forwarding headers for NO_MODULE targets
The GlobalConfig target is not an actual module, so there's no point
in trying to create forwarding headers for GlobalConfig's qconfig.h
within qt_feature_module_end.
qconfig.h's forwarding header will be created implicitly while
processing QtCore target's SYNCQT.INJECTIONS value, which is read
from the headers.pri file generated by syncqt.
This also fixes trying to create forwarding headers when processing
the sqldrivers project.
Amends 02a015375a
.
Change-Id: Ifd70d8c3ebf881ffdcf90db8d5d3b23309bc8fed
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
4dacc09921
commit
9fade925e3
@ -63,7 +63,7 @@ target_include_directories(GlobalConfig INTERFACE
|
||||
$<INSTALL_INTERFACE:include>
|
||||
$<INSTALL_INTERFACE:include/QtCore>
|
||||
)
|
||||
qt_feature_module_begin(LIBRARY Core
|
||||
qt_feature_module_begin(NO_MODULE
|
||||
PUBLIC_FILE src/corelib/global/qconfig.h
|
||||
PRIVATE_FILE src/corelib/global/qconfig_p.h
|
||||
)
|
||||
|
@ -397,15 +397,19 @@ function(qt_feature_module_end)
|
||||
|
||||
# Extra header injections which have to have forwarding headers created by
|
||||
# qt_install_injections.
|
||||
set(injections "")
|
||||
qt_compute_injection_forwarding_header("${__QtFeature_library}"
|
||||
SOURCE "${__QtFeature_public_file}"
|
||||
OUT_VAR injections)
|
||||
qt_compute_injection_forwarding_header("${__QtFeature_library}"
|
||||
SOURCE "${__QtFeature_private_file}" PRIVATE
|
||||
OUT_VAR injections)
|
||||
# Skip creating forwarding headers if qt_feature_module_begin was called with NO_MODULE, aka
|
||||
# there is no include/<module_name> so there's no place to put the forwarding headers.
|
||||
if(__QtFeature_library)
|
||||
set(injections "")
|
||||
qt_compute_injection_forwarding_header("${__QtFeature_library}"
|
||||
SOURCE "${__QtFeature_public_file}"
|
||||
OUT_VAR injections)
|
||||
qt_compute_injection_forwarding_header("${__QtFeature_library}"
|
||||
SOURCE "${__QtFeature_private_file}" PRIVATE
|
||||
OUT_VAR injections)
|
||||
|
||||
set(${arg_OUT_VAR_PREFIX}extra_library_injections ${injections} PARENT_SCOPE)
|
||||
set(${arg_OUT_VAR_PREFIX}extra_library_injections ${injections} PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
if (NOT ("${target}" STREQUAL "NO_MODULE"))
|
||||
get_target_property(targetType "${target}" TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user