[CMake] CMake 2.6.0 Beta ready for testing!

Brad King brad.king at kitware.com
Fri Mar 28 13:27:00 EDT 2008


Orion Poplawski wrote:
> Bill Hoffman wrote:
>> I am happy to announce that CMake 2.6.0 has entered the beta stage! 
>> You can find the source and binaries here: 
>> http://www.cmake.org/files/v2.6/.
>>
> 
> I can't build my cmake rpm on Fedora 8.  I get:
> 
> sh -x ./bootstrap --prefix=/usr --datadir=/share/cmake 
> --docdir=/share/doc/cmake-2.6.0 --mandir=/share/man --system-libs
> ....
> + 
> /export/home/orion/fedora/cmake/devel/cmake-2.6.0-RC-5/Bootstrap.cmk/cmake 
> /export/home/orion/fedora/cmake/devel/cmake-2.6.0-RC-5 
> -C/export/home/orion/fedora/cmake/devel/cmake-2.6.0-RC-5/Bootstrap.cmk/InitialCacheFlags.cmake 
> '-GUnix Makefiles' -DCMAKE_USE_SYSTEM_LIBRARIES=1
> loading initial cache file 
> /export/home/orion/fedora/cmake/devel/cmake-2.6.0-RC-5/Bootstrap.cmk/InitialCacheFlags.cmake 
> 
> -- The C compiler identification is GNU
> ......
> 
> CMake Error at Source/CMakeLists.txt:2 (CHECK_INCLUDE_FILE):
>   Unknown CMake command "CHECK_INCLUDE_FILE".
> 
> 
> Source/CMakeLists.txt:
> # Check if we can build support for ELF parsing.
> CHECK_INCLUDE_FILE("elf.h" HAVE_ELF_H)

It looks like no one built with --system-libs since that 
CHECK_INCLUDE_FILE line was added.  Try adding the line

   INCLUDE(CheckIncludeFile)

at the top of the file.  I've already committed this to CMake CVS. 
Please let me know if there are more problems.

Thanks,
-Brad



More information about the CMake mailing list