Anybody has any idea?<br><br><div class="gmail_quote">On Dec 11, 2007 5:07 PM, Clark J. Wang &lt;<a href="mailto:dearvoid@gmail.com">dearvoid@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a CMakeLists.txt like this:<br><br>PROJECT(foo)<br><br>SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)<br><br>INCLUDE(CheckIncludeFile)<br><br>CHECK_INCLUDE_FILE(poll.h VAR1)<br>CHECK_INCLUDE_FILE(sys/event.h VAR2)<br>
<br>
When I run `cmake .&#39; it outputed like this:<br><br>-- Check for working C compiler: /usr/bin/gcc<br>-- Check for working C compiler: /usr/bin/gcc -- works<br>-- Check size of void*<br>-- Check size of void* - done<br>

-- Check for working CXX compiler: /usr/bin/c++<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br>-- Looking for poll.h<br>-- Looking for poll.h - found<br>-- Looking for sys/event.h<br>-- Looking for sys/event.h - not found
<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /root/void/cmake/check_include_file/build<br><br>This is fine for `sys/event.h&#39; is not available on my system. But when I run `cmake --debug-trycompile .&#39; it outputed like this:
<br><br>debug trycompile on<br>-- Check for working C compiler: /usr/bin/gcc<br>-- Check for working C compiler: /usr/bin/gcc -- works<br>-- Check size of void*<br>-- Check size of void* - done<br>-- Check for working CXX compiler: /usr/bin/c++
<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br>-- Looking for poll.h<br>-- Looking for poll.h - found<br>-- Looking for sys/event.h<br>-- Looking for sys/event.h - found<br>-- Configuring done<br>-- Generating done
<br>-- Build files have been written to: /root/void/cmake/check_include_file/build<br><br>This time it said that `sys/event.h&#39; was found! Anything wrong?<br>
</blockquote></div><br>