1From 68d3b1dfbbd2f54bf81986d1d733deaf66658b15 Mon Sep 17 00:00:00 2001 2From: Davide Viti <zinosat@tiscali.it> 3Date: Thu, 14 Jul 2016 10:14:59 +0100 4Subject: [PATCH] rename cmake rootfile 5 6ctest fails on the target, because it cannot find CMake.cmake inside 7CMAKE_DATA_DIR (typically set to "/usr/share/cmake-3.0"): all *.cmake 8files are removed at build time via the target-finalize rule. 9 10This buildroot-specific patch makes sure ctest looks also for 11"Modules/CMake.cmake.ctest" before complaining 12 13[Vincent: tweak patch for 3.6.3] 14[James: tweak patch for 3.15.4] 15 16Signed-off-by: Davide Viti <zinosat@tiscali.it> 17Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> 18Signed-off-by: James Hilliard <james.hilliard1@gmail.com> 19--- 20 Source/cmake.cxx | 7 ++++++- 21 1 file changed, 6 insertions(+), 1 deletion(-) 22 23diff --git a/Source/cmake.cxx b/Source/cmake.cxx 24index 3772f09985..c317e4af38 100644 25--- a/Source/cmake.cxx 26+++ b/Source/cmake.cxx 27@@ -1009,7 +1009,12 @@ int cmake::AddCMakePaths() 28 "Path to cpack program executable.", cmStateEnums::INTERNAL); 29 #endif 30 if (!cmSystemTools::FileExists( 31- (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake"))) { 32+ (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake")) && 33+ !cmSystemTools::FileExists( 34+ (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest") 35+ ) 36+ ) 37+ { 38 // couldn't find modules 39 cmSystemTools::Error( 40 "Could not find CMAKE_ROOT !!!\n" 41-- 422.20.1 43 44