The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cmake / 0001-rename_cmake_rootfile.patch
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.
4
5 This buildroot-specific patch makes sure ctest looks also for
6 "Modules/CMake.cmake.ctest" before complaining
7
8 Signed-off-by: Davide Viti <zinosat@tiscali.it>
9
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 +     )
21      {
22      // couldn't find modules
23      cmSystemTools::Error("Could not find CMAKE_ROOT !!!\n"