[CMake] determining which system headerfile provides a given function

René J.V. Bertin rjvbertin at gmail.com
Sat Jun 13 17:17:37 EDT 2015


On Saturday June 13 2015 22:26:12 Alexander Neundorf wrote:

> did you try check_symbol_exists() and the other similar functions ?

Yes, but none that I could find give any information beyond whether the symbol exists. It may be possible (or necessary) to repeat such tests trying each of the possible candidate header files in succession until a hit is found, but as I said in my initial email, that doesn't work. That's about all there's to say about it: I presume this approach doesn't work because of caching intended to avoid testing the same thing twice.

René


More information about the CMake mailing list