Re: [cmake-developers] CMake "find_package" command on a package that is not installed is unexpectedly successful
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 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 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=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 >> > -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers
Re: [cmake-developers] CMake "find_package" command on a package that is not installed is unexpectedly successful
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 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=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 > -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers
Re: [cmake-developers] CMake "find_package" command on a package that is not installed is unexpectedly successful
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=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 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers
[cmake-developers] CMake "find_package" command on a package that is not installed is unexpectedly successful
I am working my way through the "CMake Cookbook" by Radovan Bast and Roberto Di Remigio and got to an example that required the Eigen C++ libraries. (chapter-02/recipe-06) I downloaded the ".zip" for the Eigen libraries and unzipped it to an arbitrary location. Then I ran CMake on it (but I did not build or install it). After doing this, magically the example code was able to find it and the example built successfully even though I never told it where to look for the Eigen libraries. A detailed description of my experience is in this stack overflow post: https://stackoverflow.com/questions/54541261/cmake-find-package-command-on-a-package-that-was-not-installed-is-unexpectedly?noredirect=1#comment95884208_54541261 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? As far as I can tell from the documentation on "find_package" it should not work. Thanks, Tim -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers