[CMake] Relinking with Ninja broken in 3.7.0
Mika Fischer
mika.fischer at zoopnet.de
Wed Nov 16 11:36:53 EST 2016
Hi,
I get the following error even though I'm on Linux and thus an ELF-based
platform. This breaks all our builds...
`The install of the <target> target requires changing an RPATH from
the build tree, but this is not supported with the Ninja generator unless
on an ELF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH variable may
be set to avoid this relinking step.`
Looking at cmGeneratorTarget.cxx#L1214, I see that there's no switch for
ELF-based platforms, it just unconditionally throws a fatal error when
relinking is required and ninja is being used...
Is the error message misleading and this should actually work on Linux?
Or is this not supposed to be working, and we should no longer use ninja?
If so, why?
CMAKE_BUILD_WITH_INSTALL_RPATH is not a viable alternative for us...
Best,
Mika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161116/6289a987/attachment.html>
More information about the CMake
mailing list