Thanks a lot! This proposal solved my problem ☺ BR Andrei Von: Jussi Kukkonen [mailto:jussi.kukkonen@intel.com] Gesendet: Dienstag, 27. Juni 2017 10:45 An: Ehrlich Andrei Cc: yocto@yoctoproject.org Betreff: Re: [yocto] : cmake and create_symlink using cmake 3.5 and yocto 2.2.2 On 26 June 2017 at 21:46, Ehrlich Andrei > wrote: > Please excuse the newbie question I want to ask, but I started with yocto and cmake 3 month ago and now I have a couple of recipes based on cmake. One of that cmake files installs links using following code: > > install( > CODE "execute_process( \ > COMMAND ${CMAKE_COMMAND} -E create_symlink \ > __tool \ > ${CMAKE_INSTALL_PREFIX}/bin/tool_${DST_NAME} \ > )" > > When the code is executed in yocto the do_install task fails with following error: > failed to create symbolic link '/usr/bin/tool_intf': Permission denied The code should account for DESTDIR I think: maybe something like "$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/bin/tool_${DST_NAME}" as the target HTH, Jussi