I want to check whether M_MMAP_THRESHOLD is defined in either malloc.h or sys/malloc.h, and whether CLOCK_REALTIME is defined in either time.h or sys/time.h. I thought this would work:
check_symbol_exists(M_MMAP_THRESHOLD "malloc.h;sys/malloc.h" HAVE_M_MMAP_THRESHOLD) check_symbol_exists(CLOCK_REALTIME "time.h;sys/time.h" HAVE_CLOCK_REALTIME) In this case, I found CLOCK_REALTIME but not M_MMAP_THRESHOLD (they both exist on this system, btw). Here are some things I've tried and their outcomes: for M_MMAP_THRESHOLD: "malloc.h;sys/malloc.h" -> not found "malloc.h" -> found "stdlib.h;malloc.h;sys/malloc.h" -> not found and for CLOCK_REALTIME: "time.h" -> found "sys/time.h" (which includes <time.h> in fact) -> not found "time.h;sys/time.h" -> found This leads me to believe that something funky is going on with this module. Perhaps there is a bug? -- Cheers, Leif -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake