[CMake] Project being (unnecessarily) relinked

Bill Hoffman bill.hoffman at kitware.com
Mon Sep 10 16:20:06 EDT 2007


Jesper Eskilson wrote:
> Matthew Smith wrote:
>> Jesper Eskilson wrote:
>>
>>>
>>> I'm still very much interested in an answer to this question.
>>
>> Regarding suppressing unnecessary relinking, I had a similar problem 
>> in my application (QTM) in which it was relinked at "make install" 
>> stage, often to a different version of Qt to the one I had chosen to 
>> link it to at build stage.  I included the following code, and the 
>> problem was solved:
>>
>> SET_TARGET_PROPERTIES( ${PROGNAME} PROPERTIES 
>> INSTALL_RPATH_USE_LINK_PATH TRUE )
>
> My problem appears on Windows with Visual Studio *only*. I though RPATH
> was a Linux/Unix-issue only.
RPATH is not your problem, and windows should not relink each time.   
You need to figure out what is making it re-link, some file must be 
changing with each build.

-Bill



More information about the CMake mailing list