[CMake] find_package
Lars Lars
laasunde at hotmail.com
Thu Sep 5 03:26:29 EDT 2013
Using Latest version of CMake on Windows 7 and Redhat 6
Running the below code on both platforms produce slightly different content in QT_LIBRARIES.
FIND_PACKAGE(Qt4 4.7.1 COMPONENTS QtCore QtGui)
IF (QT4_FOUND)
MESSAGE(STATUS "QT_LIBRARIES: ${QT_LIBRARIES}"
ENDIF()
On Windows I get;
"Optimized;c:/tools/qt/lib/QtCore4.dll;debug;c:/tools/qt/lib/QtCored4.dll;
Optimized;c:/tools/qt/lib/QtGui4.dll;debug;c:/tools/qt/lib/QtGuid4.dll;"
On Redhat I get;
"/tools/qt/lib/libQtCore.so;/tools/qt/lib/libQtGui.so"
The Redhat version is missing the keywords "Optimzed" and "Debug".
Reading the spec is appears the keywords are optional, is that correct?
So when no keyword is specified, then the library can be used with all configurations?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130905/d46a9300/attachment.htm>
More information about the CMake
mailing list