From: Elan Ruusamäe Date: Sun, 30 Dec 2018 21:02:06 +0000 (+0200) Subject: update cmake find modules X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=0212a546724a9aaf90f030626fa0824693aec10c;hp=dd308d9f6069710bc67d8c27c7ae8b66e00fe2dd;p=projects%2Fcleanbuild.git update cmake find modules --- 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 "(.+)" }) {