[Cmake] How to make Check*Exists modules include headers

Brad King brad.king at kitware.com
Wed, 19 May 2004 11:20:45 -0400

Bradley Lowekamp wrote:
> I need to check if certain types, functions variables are defined in a 
> header (OpenGL actually). There seem to be some CMake modules that are 
> close to checking this but they don't seem to include any parameters for 
> including header files (and the needed libraries to link too). Is there 
> a way that I can use these modules to detect these functions and 
> variables in a non-standard header without having to hack around in them?

Look at the CheckSymbolExists.cmake module.