MantisBT - CMake
View Issue Details
0013827CMakeModulespublic2013-01-03 06:022013-01-03 15:03
Martin Müllenhaupt 
Clinton Stimpson 
normalfeaturealways
closedno change required 
CMake 2.8.10.2 
 
0013827: UseQt4.cmake should add link_directories command
UseQt4.cmake contains a
   include_directories(${QT_INCLUDE_DIR})
command for the include directories.

It should contain a similar command
  link_directories(${QT_LIBRARY_DIR})
for the lib directory.

This would complete the setup of Qt4 in my environment, where it wasn't installed in the standard install prefix.
qt
Issue History
2013-01-03 06:02Martin MüllenhauptNew Issue
2013-01-03 06:16Martin MüllenhauptTag Attached: qt
2013-01-03 06:24Rolf Eike BeerNote Added: 0031960
2013-01-03 06:24Rolf Eike BeerAssigned To => Clinton Stimpson
2013-01-03 06:24Rolf Eike BeerStatusnew => assigned
2013-01-03 13:59Alex NeundorfNote Added: 0031965
2013-01-03 15:03Clinton StimpsonNote Added: 0031967
2013-01-03 15:03Clinton StimpsonStatusassigned => closed
2013-01-03 15:03Clinton StimpsonResolutionopen => no change required

Notes
(0031960)
Rolf Eike Beer   
2013-01-03 06:24   
This is almost certainly totally wrong. If you use target_link_libraries as in the example at the to of FindQt4 documentation you get absolute paths to those libraries. If not, that is the bug. But link_directories is in almost all cases the wrong answer (see it's documentation).
(0031965)
Alex Neundorf   
2013-01-03 13:59   
Eike is right.
How about closing this ticket ?
(0031967)
Clinton Stimpson   
2013-01-03 15:03   
I agree. There's no way we'll take a step backwards and use linnk_directories().
Martin, if you still have problems using a Qt from non-standard locations, I suggest going to the mailing list first.