]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
update cmake find modules
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 30 Dec 2018 21:02:06 +0000 (23:02 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 30 Dec 2018 21:02:06 +0000 (23:02 +0200)
findbr

diff --git a/findbr b/findbr
index be952da7bc85462c5a40a362163152bc9d893a1a..4000f7db30daeb3ffcbc8a016fe9de052777a9a7 100755 (executable)
--- 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 "(.+)"
                }) {
This page took 0.158868 seconds and 4 git commands to generate.