[CMake] Project being (unnecessarily) relinked

Jack Kelly endgame.dos at gmail.com
Wed Sep 5 11:58:54 EDT 2007


Mathieu Malaterre wrote:
> On 9/4/07, Jesper Eskilson <jesper at eskilson.se> wrote:
>> Hi!
>>
>> I've got a Visual Studio 8 solution generated by CMake where one of the
>> projects is always being relinked everytime I build it, even when
>> nothing in it has changed (i.e. if I try to build it twice, it always
>> relinks the project the second time).
>>
>> I've studied the build logs, but they do not make me any wiser.
>>
>> Does anyone recognize this behavior?

Could it be something to do with RPATH? Try building with 
CMAKE_SKIP_RPATH ON set in the cache. My guess would be that because you 
don't know where all the libs are until install time, you have to do a 
relink to ensure that the RPATH is being set correctly.

(Someone please correct me if I'm wrong.)

-- Jack


More information about the CMake mailing list