2019-10-27 15:40:14 +01:00
|
|
|
From 68d3b1dfbbd2f54bf81986d1d733deaf66658b15 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Davide Viti <zinosat@tiscali.it>
|
|
|
|
Date: Thu, 14 Jul 2016 10:14:59 +0100
|
|
|
|
Subject: [PATCH] rename cmake rootfile
|
|
|
|
|
2015-03-08 10:47:20 +01:00
|
|
|
ctest fails on the target, because it cannot find CMake.cmake inside
|
|
|
|
CMAKE_DATA_DIR (typically set to "/usr/share/cmake-3.0"): all *.cmake
|
|
|
|
files are removed at build time via the target-finalize rule.
|
|
|
|
|
|
|
|
This buildroot-specific patch makes sure ctest looks also for
|
|
|
|
"Modules/CMake.cmake.ctest" before complaining
|
|
|
|
|
2016-11-04 11:08:37 +01:00
|
|
|
[Vincent: tweak patch for 3.6.3]
|
2019-10-27 15:40:14 +01:00
|
|
|
[James: tweak patch for 3.15.4]
|
2016-11-04 11:08:37 +01:00
|
|
|
|
2015-03-08 10:47:20 +01:00
|
|
|
Signed-off-by: Davide Viti <zinosat@tiscali.it>
|
2016-11-04 11:08:37 +01:00
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
2019-10-27 15:40:14 +01:00
|
|
|
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
|
|
|
|
---
|
|
|
|
Source/cmake.cxx | 7 ++++++-
|
|
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
2015-03-08 10:47:20 +01:00
|
|
|
|
2019-10-27 15:40:14 +01:00
|
|
|
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
|
|
|
|
index 3772f09985..c317e4af38 100644
|
|
|
|
--- a/Source/cmake.cxx
|
|
|
|
+++ b/Source/cmake.cxx
|
|
|
|
@@ -1009,7 +1009,12 @@ int cmake::AddCMakePaths()
|
|
|
|
"Path to cpack program executable.", cmStateEnums::INTERNAL);
|
2015-03-08 10:47:20 +01:00
|
|
|
#endif
|
2016-11-04 11:08:37 +01:00
|
|
|
if (!cmSystemTools::FileExists(
|
2019-10-27 15:40:14 +01:00
|
|
|
- (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake"))) {
|
|
|
|
+ (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake")) &&
|
|
|
|
+ !cmSystemTools::FileExists(
|
|
|
|
+ (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest")
|
2016-11-04 11:08:37 +01:00
|
|
|
+ )
|
2015-03-08 10:47:20 +01:00
|
|
|
+ )
|
2016-11-04 11:08:37 +01:00
|
|
|
+ {
|
2015-03-08 10:47:20 +01:00
|
|
|
// couldn't find modules
|
2016-11-04 11:08:37 +01:00
|
|
|
cmSystemTools::Error(
|
|
|
|
"Could not find CMAKE_ROOT !!!\n"
|
2019-10-27 15:40:14 +01:00
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|