[projects/cleanbuild] update cmake find modules

glen glen at pld-linux.org
Mon Dec 31 01:02:34 CET 2018


commit 0212a546724a9aaf90f030626fa0824693aec10c
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Dec 30 23:02:06 2018 +0200

    update cmake find modules

 findbr | 43 ++++++++++++++-----------------------------
 1 file changed, 14 insertions(+), 29 deletions(-)
---
diff --git a/findbr b/findbr
index be952da..4000f7d 100755
--- a/findbr
+++ b/findbr
@@ -559,6 +559,20 @@ while ( $_ = shift @lines ) {
 			warn "Unrecognized cmake error: $reason\n";
 		}
 	}
+
+	if ( m{^CMake Error at (?:\S+/)?(\S+?):(\d+) \(find_package\):} ) {
+		my ($file, $line) = (lc $1, $2);
+
+		#CMake Error at CMakeLists.txt:29 (find_package):
+		#  Could not find a package configuration file provided by "LLVM" with any of the following names:
+		#
+		#    LLVMConfig.cmake
+		#    llvm-config.cmake
+		my @files = grep { /\.cmake$/ } @lines;
+		my @find = map { chomp; s/^\s+//; "/usr/*/cmake/*/$_" } @files;
+		poldek_file(@find);
+	}
+
 	if ( m{^\s*ERROR: (?:\S+/)?(\S+?\.cmake) not found} ) {
 		my $cmake = $1;
 		warn "Looking for cmake file: $cmake\n";
@@ -633,35 +647,6 @@ while ( $_ = shift @lines ) {
 		}
 	}
 
-	# CMake Error at CMakeLists.txt:86 (find_package):
-	#  By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
-	#  project has asked CMake to find a package configuration file provided by
-	#  "Qt5LinguistTools", but CMake did not find one.
-	#
-	#  Could not find a package configuration file provided by "Qt5LinguistTools"
-	#  with any of the following names:
-	#
-	#    Qt5LinguistToolsConfig.cmake
-	#    qt5linguisttools-config.cmake
-	#
-	#  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
-	#  set "Qt5LinguistTools_DIR" to a directory containing one of the above
-	#  files.  If "Qt5LinguistTools" provides a separate development package or
-	#  SDK, be sure it has been installed.
-	# ---
-	#CMake Warning at /usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:273 (find_package):
-	#  Could not find a package configuration file provided by "Qt5Network" with
-	#  any of the following names:
-	#
-	#    Qt5NetworkConfig.cmake
-	#    qt5network-config.cmake
-	#
-	#  Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set
-	#  "Qt5Network_DIR" to a directory containing one of the above files.  If
-	#  "Qt5Network" provides a separate development package or SDK, be sure it has
-	#  been installed.
-	#   Can not use "Network" module which has not yet been found.
-
 	if (m{By not providing "Find(.+)\.cmake" in CMAKE_MODULE_PATH}
 		or m{Could not find a package configuration file provided by "(.+)"
 		}) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/8793c6127466e4784aaab5ba669818f454d90318



More information about the pld-cvs-commit mailing list