[CMake] Project being (unnecessarily) relinked

Matthew Smith indigojo at blogistan.co.uk
Mon Sep 10 14:37:15 EDT 2007


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 )

Hope this helps,

Matt Smith

-- 

http://www.blogistan.co.uk/qt/



More information about the CMake mailing list