CMake/Tests/FindPackageTest
Alex Neundorf db44848f44 Prefer files from CMAKE_ROOT when including from CMAKE_ROOT
This patch makes include() and find_package() prefer cmake files
located in CMAKE_ROOT over those in CMAKE_MODULE_PATH.
This makes sure that the including file gets that file included
which it expects, i.e. the one from cmake with which it was tested.
It only changes behaviour when such an included file exists both
in CMAKE_MODULE_PATH and in CMAKE_ROOT.
This comes together with a new policy CMP0017, with default
behaviour it behaves as it always did, but warns.
With NEW behaviour it includes the file from CMAKE_ROOT
instead from CMAKE_MODULE_PATH. This fixes (if CMP0017 is set)
building KDE 4.5 with cmake >= 2.8.3.
Also a basic test for this policy in included.
2011-01-04 08:06:20 -05:00
..
A ENH: Add test for new find_* command HINTS option. 2008-06-09 15:09:14 -04:00
B ENH: Add test for new find_* command HINTS option. 2008-06-09 15:09:14 -04:00
Baz 1.1 ENH: Teach find_package about more install dirs 2008-12-17 09:24:05 -05:00
Baz 1.2/CMake ENH: Teach find_package about more install dirs 2008-12-17 09:24:05 -05:00
Exporter Test the user package registry 2009-09-01 14:05:42 -04:00
TApp.app/Contents/Resources ENH: Updated FindPackageTest to test new find_package command features. 2008-01-17 09:06:36 -05:00
TFramework.framework/Versions/A/Resources ENH: Updated FindPackageTest to test new find_package command features. 2008-01-17 09:06:36 -05:00
include ENH: add support for CMAKE_FIND_PREFIX_PATH as discussed with Brad. 2007-10-26 09:55:40 -04:00
lib Teach find_* commands to ignore some paths 2010-08-13 11:53:28 -04:00
CMakeLists.txt Prefer files from CMAKE_ROOT when including from CMAKE_ROOT 2011-01-04 08:06:20 -05:00
FindPackageHandleStandardArgs.cmake Prefer files from CMAKE_ROOT when including from CMAKE_ROOT 2011-01-04 08:06:20 -05:00
FindPackageTest.cxx ENH: Added FindPackageTest to improve coverage. 2003-07-24 11:33:06 -04:00
FindRecursiveA.cmake ENH: Remove implicit NO_MODULE when recursing 2008-10-08 10:56:23 -04:00
FindRecursiveB.cmake ENH: Help recursive find_package calls in modules 2008-10-03 10:40:07 -04:00
FindRecursiveC.cmake ENH: Help recursive find_package calls in modules 2008-10-03 10:40:07 -04:00
FindVersionTestA.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00
FindVersionTestB.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00
FindVersionTestC.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00
FindVersionTestD.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00