[Cmake] Recommended way to check for header and library availability

Gerard Beekmans gerard at linuxfromscratch.org
Sat, 06 Mar 2004 09:58:09 -0700


On Fri, 2004-03-05 at 07:58, William A. Hoffman wrote:
> FIND_FILE and FIND_LIBRARY commands would be a good place to start.
> You may also want to look in the Modules directory of cmake and
> see how many other libraries and headers are found.

Is there a way to tell cmake to abort processing when a file is not
found? After the FIND_LIBRARY command I could use an 'IF' to see if the
lib was found. In case it's not, how do I notify the user of this?

-- 
Gerard Beekmans

/* If Linux doesn't have the solution, you have the wrong problem */