Skip to content

Commit

Permalink
Fix framework headers copying when module don't have header files
Browse files Browse the repository at this point in the history
Amends 103eca1

Change-Id: I3caae60c022cd46a6d33691760b619920d6e778e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
  • Loading branch information
semlanik committed Feb 15, 2024
1 parent 0d9c92b commit 02e5162
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions cmake/QtFrameworkHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,19 @@ function(qt_copy_framework_headers target)
COMMAND ${copy_fw_sync_headers_command})
endif()

add_custom_command(
OUTPUT ${out_files}
DEPENDS ${target}_copy_fw_sync_headers ${in_files}
COMMAND
${CMAKE_COMMAND} -E make_directory ${out_dirs}
${copy_commands}
VERBATIM
COMMENT "Copy the ${target} header files to the framework directory"
)
set_property(TARGET ${target} APPEND PROPERTY
QT_COPIED_FRAMEWORK_HEADERS "${out_files}")
if(out_files)
add_custom_command(
OUTPUT ${out_files}
DEPENDS ${target}_copy_fw_sync_headers ${in_files}
COMMAND
${CMAKE_COMMAND} -E make_directory ${out_dirs}
${copy_commands}
VERBATIM
COMMENT "Copy the ${target} header files to the framework directory"
)
set_property(TARGET ${target} APPEND PROPERTY
QT_COPIED_FRAMEWORK_HEADERS "${out_files}")
endif()
endfunction()

function(qt_internal_generate_fake_framework_header target)
Expand Down

0 comments on commit 02e5162

Please sign in to comment.