| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
eeaaffc find_package: Test error and warning messages in failure cases
52dffb9 Merge branch 'test-CMakeCommands' into find_package-improve-messages
d365104 find_package: Optionally warn when implicitly using Config mode
31ead5f find_package: Reject mixed use of MODULE- and CONFIG-only options
6d83083 find_package: mention requested version number in error message
9c39bbd find_package: add CONFIG mode keyword alias for NO_MODULE
f310f67 find_package: add MODULE mode to use only Find-modules
7d67dcf find_package: improve error message when no Find module is present
978d89b find_package: rename NoModule to UseFindModules
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add a "CMakeCommands.find_package" test to run CMake on a bunch of cases
in which find_package fails. Check that the process return code and
warning/error messages are as expected. Record expected test output in
corresponding files for reference by the check. These files will also
serve as a reference for the message text in each case.
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Define variable CMAKE_FIND_PACKAGE_WARN_NO_MODULE for use by a project
that wants to use an explicit mode in every call to find_package in
order to generate more specific failure messages. Word the warning
using the new CONFIG and MODULE mode keywords when the minimum required
version of CMake is new enough to have them. Otherwise word the warning
using the old NO_MODULE mode keyword.
Inspired-by: Alex Neundorf <neundorf@kde.org>
|
| | |
| | |
| | |
| | |
| | | |
Many options imply exclusive Config mode. The new MODULE option
implies exclusive Module mode. Do not allow mixed combinations.
|
| | |
| | |
| | |
| | |
| | |
| | | |
When neither a Find-module or a config file can be found print the
required version so the user knows which version of the package to
install.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The new mode differ from default mode in that that it doesn't fallback
to config mode. The default mode stays unchanged.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
...positive logic is easier to handle
Alex
|
|\ \ \
| | |/
| |/|
| | |
| | | |
5e1a5c4 Add infrastructure for CMakeCommands tests
|
| | |
| | |
| | |
| | |
| | | |
Generalize the build_command test framework as a macro to add the
test. Process the CMakeCommands subdirectory explicitly.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
b3f9fe4 find_package: print error if an invalid CONFIGS name is used
|
| |/
| |
| |
| |
| |
| | |
In commit 41c2895b (Added version support to Config mode of find_package
command, 2008-01-28) the error message was computed but was not
reported. Add the SetError call to report it.
|
|\ \
| | |
| | |
| | |
| | | |
0b86388 CMakeFindPackageMode: fix 32/64bit detection if 'file' is a symlink
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
573fa3b Factor cmInstallType out of cmTarget::TargetType
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The purpose of the TargetType enumeration was overloaded for install
type because install rules were once recorded as targets. Factor the
install types out into their own enumeration.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
7d6db93 FindPythonInterp: rework the version detection
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There are versions out there that neither understand --version nor -V. Try a
completely different approach: execute a small python script that prints the
version number (and only that) in an easily reusable way using
sys.version_info. This is documented to work since Python 2.0. Use sys.version
for older versions, which is documented to exist since 1.5. If even that
doesn't work then simply assume we are on 1.4.0.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
4f6fd96 Drop if(...) check because condition is always true
|
| | |_|/ /
| |/| | |
| | | | |
| | | | | |
GetLocation returns std::string::c_str() which is never NULL
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
518f965 FindImageMagick: fix fail if no components were given
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The variable name should be added to the list here, not the content.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
f5cf8f9 Tests: Escape metachars before embedding paths into the regex (#12999)
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
${CMake_SOURCE_DIR} and ${CMake_BINARY_DIR} cannot be embedded into regex
directly. If they contain special regex metacharacters like +, the regex
will break. So just escape such metacharacters with a backslash before
embedding the path into the regex.
The issue affected the following tests: CTestTestConfigFileInBuildDir1 and
CTestTestConfigFileInBuildDir2.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
a5edfc4 Fix typo in documentation
|
| |/ / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
2ace342 Typo: Add missing ##end for ##module
c895062 Update CPack PackageMaker variable doc layout
|
| | | | | | | |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
98d1583 Provide template for CPack Cygwin generator specific variables.
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
6ad0f04 Update CPackConfig template.
94a2693 Review and update CPack variable documentation.
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Remove variable documentation from the template in order to
avoid multiple location for doc update. Users can now retrieve
CPACK_xxx variable documentation from the command line.
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This concerns all variables common to all CPack generators.
Variables mainly used and/or set in CPack.cmake are documented
therein. C++ built-in variables are documented in
cmCPackDocumentVariables.cxx.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
b3851f5 Fix CPack Drag and Drop generator documentation layout.
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
4849e6a Fix layout of the CPack Bundle documentation
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
CPACK_BUNDLE_STARTUP_SCRIPT was in fact CPACK_BUNDLE_STARTUP_COMMAND in
the C++ code. The doc has been changed accordingly.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
0d2f5c8 Fix crash if app bundle executeable couldn't be found
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fix a crash on Mac OS X if a programm can't be found as an
application bundle. CFRelease MUST NOT be called on a
NULL value.
See https://developer.apple.com/library/mac/documentation/CoreFOundation/Reference/CFTypeRef/Reference/reference.html#//apple_ref/doc/c_ref/CFRelease
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
213eb6e FindHSPELL: set HSPELL_VERSION_STRING
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This variable was documented, but never set.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
b2cbd75 Remove unused file cmake.1
|
| | |_|/ / / / /
| |/| | | | | |
| | | | | | | |
| | | | | | | | |
This old man page has long been replaced by generated documentation.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
ffdaa47 FindOpenSceneGraph: give every message() with an explicit level
|
| | |/ / / / / /
| |/| | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
ab9824e cmake-mode.el: Make indentation case-insensitive (#12995)
|
| | |/ / / / / /
| |/| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Convert the block open and close matching expressions to be explicitly
insensitive to case. This way it will not matter whether Emacs is
sensitive to case when evaluating 'string-match'.
|