diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-02-24 19:33:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-02-28 14:56:49 (GMT) |
commit | 7d67dcf52bddcd8863f00d7bb6e6e7e22a966951 (patch) | |
tree | 701ae6b95979e13b9d09215793a94e48788be3fd /Modules/FindSDL_ttf.cmake | |
parent | 978d89b99db233f2fbe5a9cfa4c7acdca93e6442 (diff) | |
download | CMake-7d67dcf52bddcd8863f00d7bb6e6e7e22a966951.zip CMake-7d67dcf52bddcd8863f00d7bb6e6e7e22a966951.tar.gz CMake-7d67dcf52bddcd8863f00d7bb6e6e7e22a966951.tar.bz2 |
find_package: improve error message when no Find module is present
Explain exactly why CMake is looking for a package configuration file
and who is expected to provide what:
CMake Error at CMakeLists.txt:7 (find_package):
By not providing "Find<pkg>.cmake" in CMAKE_MODULE_PATH the caller
has asked CMake to find a package configuration file provided by
"<pkg>", but CMake did not find one.
Could not find a package configuration file provided by "<pkg>"
with any of the names:
<pkg>Config.cmake
<pkg>-config.cmake
Add the installation prefix of "<pkg>" to CMAKE_PREFIX_PATH or
set "<pkg>_DIR" to a directory containing one of the above files.
If "<pkg>" provides separate development package or SDK be sure
it has been installed.
The first paragraph explains how CMake is interpreting the intention of
the caller. This puts the blame or credit at the call site in the
project code where it belongs both when it is a bug and when it is
intentional. It can be dropped in NO_MODULE mode.
Suggested-by: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Modules/FindSDL_ttf.cmake')
0 files changed, 0 insertions, 0 deletions