Hi, On Thu, Jul 12, 2012 at 6:12 PM, Yixun Liu <[email protected]> wrote:
> Hi, > I am using FIND_PACKAGE(Qt4 REQUIRED) in the CMakeLists to find Qt libs. > QT_LIBRARIES gives me QtGui, QtSql and QtCore, which are static libs. > How do you know that? Whats the actual content of the variable? Which platform are you running on? > How to force FIND_PACKAGE to find the dynamic libs: QtGui4, QtSql4 and > QtCore4? > I think you're misinterpreting whats happening, QtCore is the name on *nix platforms usually and QtCore4 is used only on Windows (and the name of the frameworks on MacOSX). I doubt you have libraries with both names, one being shared and one being static in the same directory and thats the only way the wrong one would be preferred since FIND_LIBRARY only searches in Qt's library-directory as reported by qmake. Andreas
-- 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
