cmake: bump version to 3.6.3
[buildroot-gz.git] / package / cmake / 0001-rename_cmake_rootfile.patch
blob8c168c15a81a0a4b40db0fca2e4feafa25ecc4b6
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 [Vincent: tweak patch for 3.6.3]
10 Signed-off-by: Davide Viti <zinosat@tiscali.it>
11 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
13 diff -rup a/Source/cmake.cxx b/Source/cmake.cxx
14 --- a/Source/cmake.cxx 2016-07-07 15:47:27.000000000 +0100
15 +++ b/Source/cmake.cxx 2016-07-14 10:14:59.914265515 +0100
16 @@ -771,7 +771,12 @@ int cmake::AddCMakePaths()
17 "Path to cpack program executable.", cmState::INTERNAL);
18 #endif
19 if (!cmSystemTools::FileExists(
20 - (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake").c_str())) {
21 + (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake").c_str()) &&
22 + !cmSystemTools::FileExists(
23 + (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest").c_str()
24 + )
25 + )
26 + {
27 // couldn't find modules
28 cmSystemTools::Error(
29 "Could not find CMAKE_ROOT !!!\n"