[CMake] Checking function or symbol in namespace
Mateusz Loskot
mateusz at loskot.net
Fri Jan 22 18:10:11 EST 2010
Mateusz Loskot wrote:
> I'm trying to perform the following checks:
>
> check_function_exists(std::pow HAVE_POW)
>
> or
>
> check_symbol_exists(std::pow cmath HAVE_POW)
>
> but it looks that both macros have troubles
> with resolving std:: namespace.
>
> The documentation is not very clear about that.
>
> Or I should stick to try_compile based tests?
First, I would like to thank to all who shared their comments.
It really helped me to understand how the macros work,
so how to use them effectively.
By the way, KDE is also a great source of various CMake macros.
Here are a few related to the discussion and C++ features:
* CheckCXXSymbolExists
http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/CheckCXXSymbolExists.cmake
* CheckPrototypeExists
http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/CheckPrototypeExists.cmake
* CheckPointerMember
http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/CheckPointerMember.cmake
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the CMake
mailing list