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

Jussi Kukkonen jussi.kukkonen at intel.com
Tue Jun 27 01:44:57 PDT 2017


On 26 June 2017 at 21:46, Ehrlich Andrei <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

HTH,
  Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170627/9ece9339/attachment.html>


More information about the yocto mailing list