[CMake] Project being (unnecessarily) relinked

Jesper Eskilson jesper at eskilson.se
Mon Sep 10 16:08:21 EDT 2007


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.

--
/Jesper




More information about the CMake mailing list