ENH: Help recursive find_package calls in modules
commit339641cf24be716fe35559e511aeabb46e5a895c
authorking <king>
Fri, 3 Oct 2008 14:40:05 +0000 (3 14:40 +0000)
committerking <king>
Fri, 3 Oct 2008 14:40:05 +0000 (3 14:40 +0000)
tree50f10a42ce8b30cdefa191a640b9d52fd2938841
parentf8dd055d48a2a7c85450cb9b2c48fda02e38f24b
ENH: Help recursive find_package calls in modules

These changes teach find_package to behave nicely when invoked
recursively inside a find-module for the same package.  The module will
never be recursively loaded again.  Version arguments are automatically
forwarded.
Source/cmFindPackageCommand.cxx
Tests/FindPackageTest/CMakeLists.txt
Tests/FindPackageTest/FindRecursiveA.cmake [new file with mode: 0644]
Tests/FindPackageTest/FindRecursiveB.cmake [new file with mode: 0644]
Tests/FindPackageTest/FindRecursiveC.cmake [new file with mode: 0644]
Tests/FindPackageTest/lib/RecursiveA/recursivea-config.cmake [new file with mode: 0644]