On Wed, Nov 4, 2009 at 7:30 PM, Brad King <brad.k...@kitware.com> wrote: > FYI, you don't actually need the HINTS option either. > Just set CMAKE_PREFIX_PATH in your environment to point > at the installation prefix (or even the build tree). > > You can also set the env var MyPacakage_DIR and it will be used > automatically. I've just committed documentation and testing > for this old but previously un-advertised feature.
This is even simplier ! Speaking of missing documentation, there may be a general confusion due to some case-insensive cmake module. When one look at FindLibXml2.cmake, which sets LIBXML2_LIBRARIES / LIBXML2_INCLUDE_DIR, people may think that setting MyPackage_DIR is equivalent to setting MYPACKAGE_DIR. This is not the case and for example: find_package(CaSeSeNsItiVe) will actually look for CaSeSeNsItiVeConfig.cmake and one has to set CaSeSeNsItiVe_DIR. 2cts -- Mathieu _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake