2016-11-16 18:21 GMT+01:00 Bill Hoffman <[email protected]>:

> On 11/16/2016 11:36 AM, Mika Fischer wrote:
>
>>
>> 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...
>>
>> Did you start with a completely clean build tree?  Or did you maybe just
> remove the CMakeCache.txt file?


Ah yes, that was the problem. Thanks a lot and sorry for the noise!

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

Reply via email to