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";
}
}
- # 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 "(.+)"
}) {