[CMake] How to check for a symbol that requires two header files in CMake?

Martin Sustrik sustrik at 250bpm.com
Thu Nov 29 03:07:31 EST 2012


On 29/11/12 08:25, Sergei Nikulov wrote:

> Have you tried  as per documentation provide list of files?
>
> check_symbol_exists (getifaddrs "sys/types.h;ifaddrs.h" SP_HAVE_IFADDRS)

I was sure I've tried it and it failed. However, now it works perfectly. 
I must have done something wrong before.

Thanks!
Martin


More information about the CMake mailing list