<div dir="ltr"><div dir="ltr">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)<div><br></div><div>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.</div><div><br></div><div>A detailed description of my experience is in this stack overflow post: <a href="https://stackoverflow.com/questions/54541261/cmake-find-package-command-on-a-package-that-was-not-installed-is-unexpectedly?noredirect=1#comment95884208_54541261">https://stackoverflow.com/questions/54541261/cmake-find-package-command-on-a-package-that-was-not-installed-is-unexpectedly?noredirect=1#comment95884208_54541261</a></div><div><br></div><div>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?</div><div><br></div><div>As far as I can tell from the documentation on "find_package" it should not work.</div><div><br></div><div>Thanks,</div><div>Tim</div></div></div>