[CMake] Testing for time.h on various platforms

Mike Jackson imikejackson at gmail.com
Fri Apr 4 12:59:45 EDT 2008


I am looking for a game plan (or code..) to test for a header file and
where the "correct" location of that header might be. Seems on some
systems, time.h should be <sys/time.h> were on others it is just
<time.h>.  Should I create some cmake code to test each one
individually? or is there a more common/scalable approach for this
type of thing?

Thanks for any help.
-- 
Mike Jackson
imikejackson _at_ gee-mail dot com


More information about the CMake mailing list