[CMake] determining which system headerfile provides a given function

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jun 15 17:05:07 EDT 2015


On Saturday, June 13, 2015 23:17:37 René J.V. Bertin wrote:
> 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.

if you have multiple candidate headers, try them all, and use separate result 
variables for every one.
Is that the problem you have ?

Alex



More information about the CMake mailing list