[cmake-developers] CMake "find_package" command on a package that is not installed is unexpectedly successful
Timothy Wrona
tjwrona1992 at gmail.com
Tue Feb 5 15:22:07 EST 2019
Is there an easy way to clean the user package registry (with a CMake
command or something similar) instead of manually making edits to the
Windows registry?
After moving this package around a few times I've realized I have a bunch
of junk entries in the user package registry.
On Tue, Feb 5, 2019 at 3:15 PM Timothy Wrona <tjwrona1992 at gmail.com> wrote:
> Thank you! I didn't know it would make a registry entry, that was the
> missing link!
>
> On Tue, Feb 5, 2019 at 2:46 PM Brad King <brad.king at kitware.com> wrote:
>
>> On 2/5/19 2:37 PM, Timothy Wrona wrote:
>> > Can anyone explain to me how "find_package" is able to find the Eigen
>> libraries
>> > even though they are just pasted into some arbitrary location that I
>> never told
>> > the example project about?
>>
>> Eigen uses the CMake package registry feature:
>>
>>
>> https://bitbucket.org/eigen/eigen/src/a3be57987f/CMakeLists.txt?at=default&fileviewer=file-view-default#CMakeLists.txt-602:604
>>
>> See docs here:
>>
>>
>> https://cmake.org/cmake/help/v3.13/manual/cmake-packages.7.html#package-registry
>>
>> and step 6 of the find_package search procedure:
>>
>>
>> https://cmake.org/cmake/help/v3.13/command/find_package.html#search-procedure
>>
>> -Brad
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190205/1b57b99c/attachment.html>
More information about the cmake-developers
mailing list