[CMake] FindQt4.cmake broken without C language
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Thu May 10 13:39:39 EDT 2007
On 2007-05-10 19:06+0200 Hendrik Sattler wrote:
> Hi,
>
> the following case does not work:
> $ cat CMakeLists.txt
> project(foo CXX)
This has just been covered in another thread. That particular project
command gives you just C++ support. As documented for "project", drop the
CXX to get both C and CXX (by default) or specify both C and CXX.
> find_package(Qt4)
> $ cmake .
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Looking for Q_WS_X11
> CMake Error: Unknown extension ".c" for
^^^^
This error is caused by lack of C support.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the CMake
mailing list