Don't include header directories that don't exist
If a module is marked as NO_MODULE_HEADERS, we shouldn't try to include the non-existing include directory which is usually generated by syncqt. Note it seems that NO_SYNC_QT and NO_MODULE_HEADERS seems to converge, so it might make sense to merge them in the future. Change-Id: Iab4e2907ed68776632337b37496b015535da8784 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
7119023829
commit
1e27ad1697
@ -1404,7 +1404,7 @@ function(add_qt_module target)
|
|||||||
|
|
||||||
# Handle cases like QmlDevTools which do not have their own headers, but rather borrow them
|
# Handle cases like QmlDevTools which do not have their own headers, but rather borrow them
|
||||||
# from another module.
|
# from another module.
|
||||||
if(NOT arg_NO_SYNC_QT)
|
if(NOT arg_NO_SYNC_QT AND NOT arg_NO_MODULE_HEADERS)
|
||||||
list(APPEND private_includes
|
list(APPEND private_includes
|
||||||
"$<BUILD_INTERFACE:${module_include_dir}/${PROJECT_VERSION}>"
|
"$<BUILD_INTERFACE:${module_include_dir}/${PROJECT_VERSION}>"
|
||||||
"$<BUILD_INTERFACE:${module_include_dir}/${PROJECT_VERSION}/${module}>")
|
"$<BUILD_INTERFACE:${module_include_dir}/${PROJECT_VERSION}/${module}>")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user