Anybody has any idea? On Dec 11, 2007 5:07 PM, Clark J. Wang <[EMAIL PROTECTED]> wrote:
> I have a CMakeLists.txt like this: > > PROJECT(foo) > > SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) > > INCLUDE(CheckIncludeFile) > > CHECK_INCLUDE_FILE(poll.h VAR1) > CHECK_INCLUDE_FILE(sys/event.h VAR2) > > When I run `cmake .' it outputed like this: > > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Check size of void* > -- Check size of void* - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Looking for poll.h > -- Looking for poll.h - found > -- Looking for sys/event.h > -- Looking for sys/event.h - not found > -- Configuring done > -- Generating done > -- Build files have been written to: > /root/void/cmake/check_include_file/build > > This is fine for `sys/event.h' is not available on my system. But when I > run `cmake --debug-trycompile .' it outputed like this: > > debug trycompile on > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Check size of void* > -- Check size of void* - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Looking for poll.h > -- Looking for poll.h - found > -- Looking for sys/event.h > -- Looking for sys/event.h - found > -- Configuring done > -- Generating done > -- Build files have been written to: > /root/void/cmake/check_include_file/build > > This time it said that `sys/event.h' was found! Anything wrong? >
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
