[CMake] Checking function or symbol in namespace

Mateusz Loskot mateusz at loskot.net
Wed Jan 20 18:55:40 EST 2010


Hi,

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?

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the CMake mailing list