16.11.2016, 19:44, "Mika Fischer" <mika.fisc...@zoopnet.de>: > 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...
I just fix up cmake_install.cmake with sed to replace CMakeRelink.dir with real library location > > Best, > Mika > ,-- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- Regards, Konstantin -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake