[CMake] Library linking cmake's bug with QT4

Félix C. Morency felix.morency at gmail.com
Fri Sep 14 23:53:26 EDT 2007


Hi,

I am trying to build a library with cmake using QT4 tools (moc, wrap) using
a master cmake script and lib/project related subscript. The thing is that I
have a build error then the one of the library (the one that uses QT4) tries
to link. Here's the log:

Linking CXX static library
/Users/fcmorency/Documents/foo/lib/libPETHardwareHandlers.a
Error processing
file:CMakeFiles/PETHardwareHandlers.dir/cmake_clean_target.cmake
Error opening link script "CMakeFiles/PETHardwareHandlers.dir/link.txt"
make[2]: *** [/Users/fcmorency/Documents/foo/lib/libPETHardwareHandlers.a]
Error 1
make[1]: ***
[Librairies/Branches/Lib_cmake/PETHardwareHandlers/CMakeFiles/PETHardwareHandlers.dir/all]
Error 2
make: *** [all] Error 2

Also, If I place myself in the
"Librairies/Branches/Lib_cmake/PETHardwareHandlers/" directory and run the
linking command myself, which would be "cmake -E cmake_link_script
CMakeFiles/PETHardwareHandlers.dir/link.txt", it does link well and build
the lib.

Any hints ?

Regards,
Félix C. Morency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070914/e86701f7/attachment.html


More information about the CMake mailing list