diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-01-09 21:38:29 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2019-01-09 21:39:33 (GMT) |
commit | 88c710ab56576fb80abd7940926c0fe461cf2469 (patch) | |
tree | 5b29428d74715490ecf7a81a4a76472957eb32aa | |
parent | 68bc9fcbb9a0d0a91d9c7b592c79b04d0f03fabc (diff) | |
parent | 200bf5774285d51d9c5f24b5b52226a7cb54d33d (diff) | |
download | CMake-88c710ab56576fb80abd7940926c0fe461cf2469.zip CMake-88c710ab56576fb80abd7940926c0fe461cf2469.tar.gz CMake-88c710ab56576fb80abd7940926c0fe461cf2469.tar.bz2 |
Merge branch 'feature/fix-link_resolved_item_into_bundle' into release-3.13
Merge-request: !2728
-rw-r--r-- | Modules/BundleUtilities.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index 613ba1a..89ca918 100644 --- a/Modules/BundleUtilities.cmake +++ b/Modules/BundleUtilities.cmake @@ -720,6 +720,9 @@ function(link_resolved_item_into_bundle resolved_item resolved_embedded_item) else() get_filename_component(target_dir "${resolved_embedded_item}" DIRECTORY) file(RELATIVE_PATH symlink_target "${target_dir}" "${resolved_item}") + if (NOT EXISTS "${target_dir}") + file(MAKE_DIRECTORY "${target_dir}") + endif() execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${symlink_target}" "${resolved_embedded_item}") endif() endfunction() |