[CMake] Specifying whether a library is C or C++

Nils Gladitz nilsgladitz at gmail.com
Wed Nov 13 13:06:16 EST 2013


On 13.11.2013 18:15, Aggelos Kolaitis wrote:
> # I don't add 'C' as the language, because I get build errors with g++
> project(PROJECT_NAME)
>
Maybe
     project(PROJECT_NAME C)
and a conditional
     enable_language(CXX)
would work?

Nils


More information about the CMake mailing list