digitalriptide wrote:
> Is it possible to set different project languages on different
> platforms? I was thinking of simply detecting the platform and having
> different project calls for different platforms, but variables such as
> ${CMAKE_SYSTEM_NAME} don't seem to be set until *after* project is
> called.
>
> The reason I ask is that, on OS X, qt4 does not seem to require a CC
> definition, but on Linux it does.You could just always enable C: project(something C) and then do something like if (UNIX) enable_language(CXX) endif() But: using Qt4 without an enabled C++-compiler is nonsense. It may work by accident if the compiler automatically acts as C++ compiler or something like that, but relying on such behavior is just asking for later trouble. Eike --
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
