Hello guys,
I have one project is compiling and linking propertly.
When I tried to include this project in a bigger project, it's not
correctly linking.
I generated both using CMAKE_VERBOSE_MAKEFILE:bool=true and I
eliminated all differences in the compile and link commands, but one :
one project finds:
Part of CMakeCache entry of project working
-------------------------------------------------------------------------
//Path to a file.
QT_QTXML_INCLUDE_DIR:PATH=C:/Qt/4.3.0/include/QtXml
//The Qt QTXML library
QT_QTXML_LIBRARY:FILEPATH=C:/Qt/4.3.0/lib/libQtXml4.a
//Path to a library.
QT_QTXML_LIBRARY_DEBUG:FILEPATH=C:/Qt/4.3.0/lib/libQtXmld4.a
//Path to a library.
QT_QTXML_LIBRARY_RELEASE:FILEPATH=C:/Qt/4.3.0/lib/libQtXml4.a
Part of CMakeCache entry of project NOT working
--------------------------------------------------------------------------
//Path to a file.
QT_QTXML_INCLUDE_DIR:PATH=C:/Qt/4.3.0/include/QtXml
//The Qt QTXML library
QT_QTXML_LIBRARY:FILEPATH=C:/Qt/4.3.0/lib/libQtXml.a
//Path to a library.
QT_QTXML_LIBRARY_DEBUG:FILEPATH=C:/Qt/4.3.0/lib/libQtXmld4.a
//Path to a library.
QT_QTXML_LIBRARY_RELEASE:FILEPATH=C:/Qt/4.3.0/lib/libQtXml.a
As you can see, the QT_QTXML_LIBRARY_RELEASE variable points to
different Qt libraries. If I changed manually in the CMakeCache.txt file
the variable to libQtXml4.a everything work.
If I try to print its contents using
MESSAGE(${QT_QTXML_LIBRARY_RELEASE}) both projects strangely show
libQtXml.a.
Anybody has this problem? I'm using CMake for almost two years and it's
the first time I see this. I'm betting my Qt install is not standard.
I'm using CMake version 2.6.0 and Qt 4.3.0.
Thanks a lot and hope to hear from you.
--
Vitor VASCONCELOS
Projet QGAR
LORIA / INRIA-Lorraine
Campus Scientifique, BP 239
54506, Vandoeuvre-lès-Nancy, FRANCE
Tel: +33 (0)3 54 95 85 76
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake