[cmake-developers] Adding CheckCXXSymbolsExists.cmake ?

Eric Noulard eric.noulard at gmail.com
Wed Jul 6 16:50:18 EDT 2011


>
> I just found that I started with this already 5 years ago:
> http://www.cmake.org/pipermail/cmake-developers/2006-September/000123.html
>
> Conclusion was that it's ok, but the existing check_something() macros should
> be renamed to check_something_C() and check_something_CXX() should be added.
>
> Not sure I like that, since it would deprecate all existing check_something()
> macros.
>
> So, just go ahead with adding it as CHECK_CXX_SYMBOL_EXISTS() or
> CHECK_SYMBOL_EXISTS_CXX() and if the macro name has no language in it, it is
> implicitely C ?

I would rather go with a backward compatible option i.e.:
No language means C.

Note that you'll need name mangling for

CMAKE_REQUIRED_xxxx vars too.
i.e.
CMAKE_CXX_REQUIRED_xxxxx


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



More information about the cmake-developers mailing list