Re: [CMake] find_package and lib/cmake/Foo

2015-07-22 Thread Biddiscombe, John A.
Robert > Have you tried setting CMAKE_PREFIX_PATH < That seems to work. I will use it from now on. Thanks JB -- 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 co

Re: [CMake] find_package and lib/cmake/Foo

2015-07-21 Thread Robert Maynard
is? > > > > thanks > > > > JB > > > > > > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Biddiscombe, John > A. > Sent: 21 July 2015 14:54 > To: cmake@cmake.org > Subject: [CMake] find_package and lib/cmake/Foo > > > > I’ve asked th

Re: [CMake] find_package and lib/cmake/Foo

2015-07-21 Thread Biddiscombe, John A.
JB From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Biddiscombe, John A. Sent: 21 July 2015 14:54 To: cmake@cmake.org Subject: [CMake] find_package and lib/cmake/Foo I've asked this before, but never resolved it... if I stall package Foo into CMAKE_INSTALL_PREFIX=/my/path/prefi

[CMake] find_package and lib/cmake/Foo

2015-07-21 Thread Biddiscombe, John A.
I've asked this before, but never resolved it... if I stall package Foo into CMAKE_INSTALL_PREFIX=/my/path/prefix and generate /my/path/prefix/lib/cmake/Foo/FooConfig.cmake etc then with Foo_DIR=/my/path/prefix Foo_ROOT=/my/path/prefix find_package(Foo) does not find package Foo One needs to set

Re: [CMake] find_package and lib/cmake.

2014-09-21 Thread Nils Gladitz
On 21.09.2014 23:34, Biddiscombe, John A. wrote: If a projX is installed to ~/apps/projX And when installed it creates projXConfig.cmake projXConfigVersion.cmake projXTargets-debug.cmake projXTargets.cmake &etc. In ~/apps/projX/lib/cmake/projX It is necessary to say cmake –Dprojx_DIR=~/apps/

[CMake] find_package and lib/cmake.

2014-09-21 Thread Biddiscombe, John A.
If a projX is installed to ~/apps/projX And when installed it creates projXConfig.cmake projXConfigVersion.cmake projXTargets-debug.cmake projXTargets.cmake &etc. In ~/apps/projX/lib/cmake/projX It is necessary to say cmake –Dprojx_DIR=~/apps/projX/lib/cmake/projX ….. When configuring another