Search for required perl modules.

Review Request #124482 - Created July 27, 2015 and submitted

Information
Alex Merry
kdoctools
master
0ac3a22...
Reviewers
docs, kdeframeworks
ltoscano

This produces a more helpful error when the user has Perl, but does not
have the Perl URI module installed.

Note that we can't really avoid erroring out in the configure stage, since perl is used while configuring KDocTools.

Without perl-uri installed, get the following error message:

--

-- Could NOT find PerlModules_URI::Escape (missing:  PerlModules_URI_Escape_FOUND)
CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find PerlModules (missing: PerlModules_all_modules_found
  URI::Escape)
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindPerlModules.cmake:77 (find_package_handle_standard_args)
  cmake/uriencode.cmake:34 (find_package)
  src/CMakeLists.txt:4 (kdoctools_encode_uri)

-- Configuring incomplete, errors occurred!

With perl-uri installed, the REQUIRED packages found list includes:

 * PerlModules , <http://www.cpan.org>
Luigi Toscano
Alex Merry
Review request changed

Status: Closed (submitted)

Change Summary:

Committed in 9fd65f34915aa0cdaa2b319c4b991b56c97146c2 (I forgot the REVIEW keyword, sorry).

Loading...