<div dir="ltr"><div>Hi,</div><div><br></div><div>I get the following error even though I'm on Linux and thus an ELF-based platform. This breaks all our builds...</div><div><br></div><div>`The install of the <target> target requires changing an RPATH from</div><div>the build tree, but this is not supported with the Ninja generator unless</div><div>on an ELF-based platform.  The CMAKE_BUILD_WITH_INSTALL_RPATH variable may</div><div>be set to avoid this relinking step.`</div><div><br></div><div>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...</div><div><br></div><div>Is the error message misleading and this should actually work on Linux?</div><div>Or is this not supposed to be working, and we should no longer use ninja? If so, why?</div><div><br></div><div>CMAKE_BUILD_WITH_INSTALL_RPATH is not a viable alternative for us...</div><div><br></div><div>Best,</div><div> Mika</div></div>