cmake: Don't add include paths to module pri if there are no headers
Change-Id: I8fa01f45410805399a511a87c6f04192ce42d374 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
c3fd24164b
commit
6baa0f4ccc
@ -193,6 +193,12 @@ function(qt_generate_module_pri_file target)
|
||||
set(module_name_in_pri "${module_versioned}")
|
||||
endif()
|
||||
|
||||
get_target_property(hasModuleHeaders ${target} INTERFACE_MODULE_HAS_HEADERS)
|
||||
if (NOT hasModuleHeaders)
|
||||
unset(public_module_includes)
|
||||
unset(private_module_includes)
|
||||
endif()
|
||||
|
||||
qt_path_join(target_path ${QT_BUILD_DIR} ${INSTALL_MKSPECSDIR}/modules)
|
||||
if (arg_INTERNAL_MODULE)
|
||||
string(PREPEND private_module_includes "${public_module_includes} ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user