Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib

2018-03-06 Thread Lucas Soltic
Šoltić <lucas.sol...@orange.fr> > Date: Friday, 2 March 2018 at 23:20 > To: Harry Mallon <Harry.Mallon@codex.online> > Cc: "cmake@cmake.org" <cmake@cmake.org> > Subject: Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find > libswiftCore.dylib &

Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib

2018-03-06 Thread Harry Mallon
Harry Mallon <Harry.Mallon@codex.online> Cc: "cmake@cmake.org" <cmake@cmake.org> Subject: Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib You miss a runtime search path when linking your executable. And this is what you achieved with install_

Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib

2018-03-02 Thread Lucas Šoltić
You miss a runtime search path when linking your executable. And this is what you achieved with install_name_tool with an additional step. To avoid this additional step, see

[CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib

2018-03-02 Thread Harry Mallon
Hello all, When making a pure Swift bundle Xcode automatically copies `libswiftCore.dylib` as follows. ``` ./Tests/SwiftOnly/Debug/SwiftOnly.app └── Contents ├── Frameworks │ └── libswiftCore.dylib ├── Info.plist ├── MacOS │ └── SwiftOnly ├── PkgInfo └──