Skip to content

BundleUtilities: link_resolved_item_into_bundle - ensure target_dir

before:

-- 1/112: *NOT* copying '/Users/tim/build/tx/MyApp.app/Contents/MacOS/MyApp'
-- 2/112: *NOT* copying '/Users/tim/build/tx/MyApp.app/Contents/PlugIns/imageformats/libqico_debug.dylib'
-- 3/112: linking '/Users/tim/build/tx/MyApp.app/Contents/Frameworks/libQt5Core_debug.5.11.3.dylib' -> '/Users/tim/build/tx/MyApp.app/Contents/Frameworks/libQt5Core_debug.5.dylib'
CMake Error: failed to create symbolic link '/Users/tim/build/tx/MyApp.app/Contents/Frameworks/libQt5Core_debug.5.dylib': no such file or directory

after

-- 1/112: *NOT* copying '/Users/tim/build/tx/MyApp.app/Contents/MacOS/MyApp'
-- 2/112: *NOT* copying '/Users/tim/build/tx/MyApp.app/Contents/PlugIns/imageformats/libqico_debug.dylib'
-- 3/112: linking '/Users/tim/build/tx/MyApp.app/Contents/Frameworks/libQt5Core_debug.5.11.3.dylib' -> '/Users/tim/build/tx/MyApp.app/Contents/Frameworks/libQt5Core_debug.5.dylib'

when creating a symlink, we have to makes sure that target directory actually exists.

Topic-rename: BundleUtilities-make-dir

Edited by Brad King

Merge request reports