From: tuxdna <tu...@gm...> - 2010-06-14 14:49:42
|
Using: cmake version 2.8.0 Fedora release 13 (Goddard) Linux 2.6.33.5-112.fc13.x86_64 Hi, I was compiling the trunk version of tora but I got an error: =========================================== [1] $ mdir builddir; cd builddir $ cmake ../tora CMake Error at CMakeLists.txt:28 (cmake_policy): Policy "CMP0015" is not known to this version of CMake. ... ... -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Configuring incomplete, errors occurred! =========================================== The error is with cmake_policy CMP0015 because it is not present in cmake-2.8.0. File tora/CMakeLists.txt says the minimum required version of cmake as 2.4.5, while CMP0015 appears in 2.8.1 ( http://www.cmake.org/Wiki/CMake_2.8.1_Docs ) CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR) The cmake_policy CMP0015 was added to svn in revision 3540 as below: $ svn log -r 3540 ------------------------------------------------------------------------ r3540 | subik | 2010-05-23 14:27:26 +0530 (Sun, 23 May 2010) | 1 line fixed devel warnings for ./loki linking ------------------------------------------------------------------------ Can someone point out what would be a good fix for this error? For now I just commented the offending line, as in the attached patch. |