cmake: Always copy Info.plist to build directory manually
Allows us to modify this file in place, before CMake copies it into the application bundle during its generator step. Change-Id: I73325c66b5b8919f57dbaa1cc76a7edbc145609c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
eb09d98065
commit
21000ede37
@ -531,14 +531,12 @@ function(_qt_internal_set_xcode_bitcode_enablement target)
|
||||
"NO")
|
||||
endfunction()
|
||||
|
||||
function(_qt_internal_generate_info_plist target)
|
||||
function(_qt_internal_copy_info_plist target)
|
||||
# If the project already specifies a custom file, we don't override it.
|
||||
get_target_property(existing_plist "${target}" MACOSX_BUNDLE_INFO_PLIST)
|
||||
if(existing_plist)
|
||||
return()
|
||||
endif()
|
||||
|
||||
get_target_property(info_plist_in "${target}" MACOSX_BUNDLE_INFO_PLIST)
|
||||
if(NOT info_plist_in)
|
||||
set(info_plist_in "${__qt_internal_cmake_apple_support_files_path}/Info.plist.app.in")
|
||||
endif()
|
||||
|
||||
string(MAKE_C_IDENTIFIER "${target}" target_identifier)
|
||||
set(info_plist_out_dir
|
||||
@ -598,7 +596,7 @@ endfunction()
|
||||
function(_qt_internal_finalize_apple_app target)
|
||||
# Shared between macOS and iOS apps
|
||||
|
||||
_qt_internal_generate_info_plist("${target}")
|
||||
_qt_internal_copy_info_plist("${target}")
|
||||
|
||||
# Only set the various properties if targeting the Xcode generator, otherwise the various
|
||||
# Xcode tokens are embedded as-is instead of being dynamically evaluated.
|
||||
|
Loading…
x
Reference in New Issue
Block a user