The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12974 ====================================================================== Reported By: mtgrasse Assigned To: ====================================================================== Project: CMake Issue ID: 12974 Category: Modules Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2012-02-18 07:21 EST Last Modified: 2012-02-18 07:21 EST ====================================================================== Summary: FindQT3 Description: find_package(Qt3 REQUIRED) always returns a QT_QTMAIN_LIBRARY and QT_LIBRARIES where the path to the qtmain library is /lib/qtmain.lib rather than ${QTDIR}/lib/qtmain.lib. Other QT libraries have the correct path.
I think this is because of the following code in FindQT3.cmake: IF (WIN32) FIND_LIBRARY(QT_QTMAIN_LIBRARY qtmain "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/lib" "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/lib" "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/lib" "$ENV{ProgramFiles}/qt/lib" $ENV{QTDIR}/lib "C:/Program Files/qt/lib" DOC "This Library is only needed by and included with Qt3 on MSWindows. It should be NOTFOUND, undefined or IGNORE otherwise." ) ENDIF (WIN32) Shouldn't there be "HINTS" or "PATHS" between "qtmain" and the first registry path? When I add HINTS into the call it starts working correctly. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-02-18 07:21 mtgrasse New Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers