DEVELOPERS: add Yegor Yefremov for the ser2net package
[buildroot-gz.git] / package / cmake / 0001-rename_cmake_rootfile.patch
blob915b7e32bb5b6559a7176e14129bd009b2f59625
1 ctest fails on the target, because it cannot find CMake.cmake inside
2 CMAKE_DATA_DIR (typically set to "/usr/share/cmake-3.0"): all *.cmake
3 files are removed at build time via the target-finalize rule.
5 This buildroot-specific patch makes sure ctest looks also for
6 "Modules/CMake.cmake.ctest" before complaining
8 Signed-off-by: Davide Viti <zinosat@tiscali.it>
10 --- cmake-3.0.2/Source/cmake.cxx~ 2014-09-11 15:24:01.000000000 +0200
11 +++ cmake-3.0.2/Source/cmake.cxx 2014-11-25 15:48:04.461033690 +0100
12 @@ -957,7 +957,10 @@
13 "Path to cpack program executable.", cmCacheManager::INTERNAL);
14 #endif
15 if(!cmSystemTools::FileExists(
16 - (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake").c_str()))
17 + (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake").c_str()) &&
18 + !cmSystemTools::FileExists(
19 + (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest").c_str())
20 + )
22 // couldn't find modules
23 cmSystemTools::Error("Could not find CMAKE_ROOT !!!\n"