Mathieu Malaterre wrote:
Are they linking to the right
one in the first place?

I do not understand the question... :(

My bad.  For some reason I was thinking it was linking but failing
to locate the library it linked at runtime.  In fact it is just
picking the wrong library and cannot link to it.

My question was simply is cmake able to pick the 64bits libs even for
Qt ? Or should I set something else in my nightly cmake dashboard ?

The FindQt3.cmake module is finding

  /usr/lib/qt3/lib/libqt-mt.so

instead of

  /usr/lib/qt3/lib64/libqt-mt.so

It looks like those paths are hard-coded in the "lib" then "lib64" order.
They were added by the commit below (relevant hunk shown).

Alex, do you remember where you got this patch?
I don't see it in our bug tracker or on the cmake or kde build lists.

Mathieu, what distro is this?  Does the FIND_LIBRARY_USE_LIB64_PATHS
global property get enabled in CMake projects on it?

-Brad


Author: Alexander Neundorf <neund...@kde.org>
Date:   Wed Aug 30 17:51:22 2006 +0000

    ENH: automatically find Qt3 on SUSE, patch from Dirk Mueller and Stephan
    Kulow

diff --git a/Modules/FindQt3.cmake b/Modules/FindQt3.cmake
index 1e5ae0c..ba0a7c0 100755
--- a/Modules/FindQt3.cmake
+++ b/Modules/FindQt3.cmake
@@ -68,6 +69,8 @@ IF (QT_MT_REQUIRED)
     ${GLOB_PATHS_LIB}
     /usr/local/qt/lib
     /usr/lib/qt/lib
+    /usr/lib/qt3/lib
+    /usr/lib/qt3/lib64
     /usr/share/qt3/lib
     C:/Progra~1/qt/lib
     /usr/X11R6/lib
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to