[CMake] Set Different Project Languages on Different Platforms?

Rolf Eike Beer eike at sf-mail.de
Sat Sep 29 15:52:43 EDT 2012


digitalriptide wrote:
> Sorry if I was not clear, the problem is the other way around.
> 
> OS X: Just CXX is fine
> Linux: Building a project with Qt4 requires C and CXX
> 
> > if (UNIX)
> > 
> >   enable_language(CXX)
> > 
> > endif()
> 
> Thanks for the pointer to enable_language. So:
> 
> project( MyProject CXX )
> enable_language( C )
> 
> is equivalent to
> 
> project( MyProject C CXX )
> 
> ?

Yes.

Please keep the list CC'ed so the answers also get archived.

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120929/0a3bac57/attachment.pgp>


More information about the CMake mailing list