0001-rename_cmake_rootfile.patch 998 B

1234567891011121314151617181920212223
  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. This buildroot-specific patch makes sure ctest looks also for
  5. "Modules/CMake.cmake.ctest" before complaining
  6. Signed-off-by: Davide Viti <zinosat@tiscali.it>
  7. --- cmake-3.0.2/Source/cmake.cxx~ 2014-09-11 15:24:01.000000000 +0200
  8. +++ cmake-3.0.2/Source/cmake.cxx 2014-11-25 15:48:04.461033690 +0100
  9. @@ -957,7 +957,10 @@
  10. "Path to cpack program executable.", cmCacheManager::INTERNAL);
  11. #endif
  12. if(!cmSystemTools::FileExists(
  13. - (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake").c_str()))
  14. + (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake").c_str()) &&
  15. + !cmSystemTools::FileExists(
  16. + (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest").c_str())
  17. + )
  18. {
  19. // couldn't find modules
  20. cmSystemTools::Error("Could not find CMAKE_ROOT !!!\n"