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 _______________________________________________ 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