MantisBT - CMake
View Issue Details
0009929CMakeModulespublic2009-11-20 03:442010-11-09 16:37
Alex Neundorf 
Clinton Stimpson 
normalmajoralways
closedfixed 
CMake-2-8 
CMake-2-8 
0009929: FindQt4: the search for additional libraries does not prefer the output from qmake
When searching the additional libraries, like e.g. libSM.so parsed from the Qt config file, the libraries are searched using:
find_library(.... PATHS ${some_dir})

This has the effect that on a 64bit system it found /usr/X11R6/lib/libSM.so, while Qt said it should look it /usr/X11R6/lib64/.

The find_xxx() calls should be changed to use HINTS instead of PATHS.
This fixes the problem (tested here).

Alex
No tags attached.
Issue History
2009-11-20 03:44Alex NeundorfNew Issue
2009-11-20 03:44Alex NeundorfStatusnew => assigned
2009-11-20 03:44Alex NeundorfAssigned To => Clinton Stimpson
2009-11-20 10:13Clinton StimpsonNote Added: 0018495
2009-11-21 19:55Alex NeundorfNote Added: 0018510
2009-11-28 10:26Clinton StimpsonNote Added: 0018605
2010-03-17 12:50Clinton StimpsonNote Added: 0019939
2010-03-17 12:50Clinton StimpsonStatusassigned => resolved
2010-03-17 12:50Clinton StimpsonResolutionopen => fixed
2010-11-09 16:37Alex NeundorfNote Added: 0023112
2010-11-09 16:37Alex NeundorfStatusresolved => closed
2010-11-09 16:37Alex NeundorfFixed in Version => CMake-2-8

Notes
(0018495)
Clinton Stimpson   
2009-11-20 10:13   
Now that FindX11.cmake supports all but one of the X11 libs Qt needs, I think I'll switch to using that (after adding support for libXi).

Does that sound OK?
(0018510)
Alex Neundorf   
2009-11-21 19:55   
How can you make sure that FindX11.cmake will prefer the libs in the dir reported by qmake ?

Alex
(0018605)
Clinton Stimpson   
2009-11-28 10:26   
I thought cmake was smart enough to tell the difference between 32 and 64 bit libraries.

It should have found the ones in /usr/X11R6/lib64/ if you were doing a 64 bit build, even if not using any info from qmake, right?

And what linux distro was this on? Some have lib as a softlink to lib64 while keeping 32 bit stuff under a lib32.
(0019939)
Clinton Stimpson   
2010-03-17 12:50   
Changed to use FindX11.cmake.
(0023112)
Alex Neundorf   
2010-11-09 16:37   
It's closed.