Suppress the PUBLIC/PRIVATE_HEADER related warning
Avoid adding module header files to a PUBLIC/PRIVATE_HEADER for the modules. All header files are installed using install(FILES call, but not as a part of install(TARGET Amends 8539e641f6f48a605547f66c47266d19e537f74e Task-number: QTBUG-103196 Change-Id: Ib95295112c74f74f237e3738d2532f9049d26ce6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
b83fc9f41a
commit
5d38e1f295
@ -641,13 +641,6 @@ function(qt_internal_add_module target)
|
||||
)
|
||||
include(${configureFile})
|
||||
qt_feature_module_end("${target}")
|
||||
|
||||
set_property(TARGET "${target}" APPEND PROPERTY
|
||||
PUBLIC_HEADER "${CMAKE_CURRENT_BINARY_DIR}/${module_config_header}"
|
||||
)
|
||||
set_property(TARGET "${target}" APPEND PROPERTY
|
||||
PRIVATE_HEADER "${CMAKE_CURRENT_BINARY_DIR}/${module_config_private_header}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT arg_HEADER_MODULE)
|
||||
@ -1132,13 +1125,10 @@ function(qt_internal_generate_cpp_global_exports target module_define_infix)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
set_property(TARGET ${target} APPEND PROPERTY PUBLIC_HEADER "${generated_header_path}")
|
||||
qt_install(FILES "${generated_header_path}"
|
||||
DESTINATION "${module_install_interface_include_dir}")
|
||||
|
||||
if(arg_GENERATE_PRIVATE_CPP_EXPORTS)
|
||||
set_property(TARGET ${target} APPEND PROPERTY PRIVATE_HEADER
|
||||
"${generated_private_header_path}")
|
||||
qt_install(FILES "${generated_private_header_path}"
|
||||
DESTINATION "${module_install_interface_private_include_dir}")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user