[yocto] : cmake and create_symlink using cmake 3.5 and yocto 2.2.2

Ehrlich Andrei Andrei.Ehrlich at corpuls.com
Wed Jun 28 02:04:11 PDT 2017

Thanks a lot!

This proposal solved my problem ☺


Von: Jussi Kukkonen [mailto:jussi.kukkonen at intel.com]
Gesendet: Dienstag, 27. Juni 2017 10:45
An: Ehrlich Andrei
Cc: yocto at 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 <Andrei.Ehrlich at corpuls.com<mailto:Andrei.Ehrlich at corpuls.com>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170628/54ae524d/attachment.html>

More information about the yocto mailing list