Re: [CMake] CMAKE_MODULE_PATH ignored

2016-02-09 Thread Attila Krasznahorkay
ath to be selected ? >>> >>> Thanks >>> >> >> Renaming FindHDF5.cmake in FindH5.cmake (or whatever is not present in >> the global cmake install) helps, but then I also need to replicate all >> dependencies (FindPackageMessage.cmake, >>

[CMake] CMAKE_MODULE_PATH ignored

2016-02-08 Thread Alain Miniussi
Hi, I am trying to fix FindHDF5.cmake (support for HDF5_ROOT is broken, only environment variable is supported and it will be eventually probably ignored in find_program). To that end, I'd like to copy it in my source tree and use that version instead of the one in /usr/shared/cmake.

Re: [CMake] CMAKE_MODULE_PATH ignored

2016-02-08 Thread Alain Miniussi
On 08/02/2016 18:43, Alain Miniussi wrote: Hi, I am trying to fix FindHDF5.cmake (support for HDF5_ROOT is broken, only environment variable is supported and it will be eventually probably ignored in find_program). To that end, I'd like to copy it in my source tree and use that version

Re: [CMake] CMAKE_MODULE_PATH ignored

2016-02-08 Thread Micha Hergarden
ed to replicate all > dependencies (FindPackageMessage.cmake, > SelectLibraryConfigurations.cmake...), shouldn't cmake look in the > /usr/shar/cmake/... for those ? > > Thanks > > Alain > How do you set CMAKE_MODULE_PATH exactly? I used to have a modified module i

[CMake] CMAKE_MODULE_PATH

2011-08-08 Thread Andreas Kelle-Emden
Hi all, the variable CMAKE_PREFIX_PATH is automatically set if the corresponding environment variable is set. This does not apply to CMAKE_MODULE_PATH. Is this behaviour intended? Best regards, Andreas ___ Powered by www.kitware.com Visit other

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-15 Thread Alexander Neundorf
On Saturday 11 April 2009, Robert Dailey wrote: The latter does not work for me. I don't know what to tell you. On Sat, Apr 11, 2009 at 6:43 AM, Daniel Nelson tor...@connect2.com wrote: On Thursday 09 April 2009 11:58:55 am Robert Dailey wrote: Sorry, the missing $ was a typo. The problem

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-11 Thread Daniel Nelson
On Thursday 09 April 2009 11:58:55 am Robert Dailey wrote: Sorry, the missing $ was a typo. The problem was that I was doing: include( foo.cmake ) I should have been doing: include( foo ) Sorry for the mixup :) Thanks for the help guys! This was a silly screwup on my part :P Should

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-11 Thread Robert Dailey
The latter does not work for me. I don't know what to tell you. On Sat, Apr 11, 2009 at 6:43 AM, Daniel Nelson tor...@connect2.com wrote: On Thursday 09 April 2009 11:58:55 am Robert Dailey wrote: Sorry, the missing $ was a typo. The problem was that I was doing: include( foo.cmake ) I

[CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Robert Dailey
I want to set a couple of custom directories of mine to be searched for cmake modules when I use include( foo.cmake ). However, I can't seem to get this to work. My code is basically: set( CMAKE_MODULE_PATH {CMAKE_SOURCE_DIR}/cmake ) include( foo.cmake ) This, however, does not work. It says it

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Adolfo Rodríguez
On Thu, Apr 9, 2009 at 6:56 PM, Robert Dailey rcdai...@gmail.com wrote: I want to set a couple of custom directories of mine to be searched for cmake modules when I use include( foo.cmake ). However, I can't seem to get this to work. My code is basically: set( CMAKE_MODULE_PATH

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread David Cole
You are missing a $ : set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ) To prepend, use this construct: set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) HTH, David On Thu, Apr 9, 2009 at 12:56 PM, Robert Dailey rcdai...@gmail.com wrote: I want to set a couple

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Robert Dailey
: You are missing a $ : set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ) To prepend, use this construct: set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) HTH, David On Thu, Apr 9, 2009 at 12:56 PM, Robert Dailey rcdai...@gmail.com wrote: I want to set a couple

[CMake] CMAKE_MODULE_PATH

2009-03-03 Thread John Vines (CISD/HPCD)
All, What is the correct syntax to add a module directory to the default module path? I am trying to append my module directory to the default module path using this: SET(MY_MODULE_DIR /home/jvines/Devel/CMAKE_MODULES) SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${MY_MODULE_DIR})

Re: [CMake] CMAKE_MODULE_PATH (UNCLASSIFIED)

2009-03-03 Thread John Vines (CISD/HPCD)
-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of John Vines (CISD/HPCD) Sent: Tuesday, March 03, 2009 11:24 AM To: cmake@cmake.org Subject: [CMake] CMAKE_MODULE_PATH All, What is the correct syntax to add a module directory to the default module path? I am trying to append my

Re: [CMake] CMAKE_MODULE_PATH (UNCLASSIFIED)

2009-03-03 Thread David Cole
${CMAKE_MODULE_PATH} ${MY_MODULE_DIR}) - Ken -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of John Vines (CISD/HPCD) Sent: Tuesday, March 03, 2009 11:24 AM To: cmake@cmake.org Subject: [CMake] CMAKE_MODULE_PATH All, What is the correct syntax

Re: [CMake] CMAKE_MODULE_PATH (UNCLASSIFIED)

2009-03-03 Thread Philip Lowman
:24 AM To: cmake@cmake.org Subject: [CMake] CMAKE_MODULE_PATH All, What is the correct syntax to add a module directory to the default module path? I am trying to append my module directory to the default module path using this: SET(MY_MODULE_DIR /home/jvines/Devel/CMAKE_MODULES

[CMake] CMAKE_MODULE_PATH on windows.

2008-05-05 Thread Phil Pellouchoud
I cannot get this to work. No matter how I set it, it never seems to be able to use it. PROJECT(x) SET(CMAKE_MODULE_PATH path) INCLUDE ( test.cmake ) Gives INCLUDE Could not find include file: test.cmake Even if I try to supply it on the command line: cmake

Re: [CMake] CMAKE_MODULE_PATH on windows.

2008-05-05 Thread Alan W. Irwin
On 2008-05-05 15:36-0700 Phil Pellouchoud wrote: I cannot get this to work. No matter how I set it, it never seems to be able to use it. PROJECT(x) SET(CMAKE_MODULE_PATH path) INCLUDE ( test.cmake ) ^ You are using the file signature for INCLUDE here which

Re: [CMake] CMAKE_MODULE_PATH not remembered?

2007-08-24 Thread Alexander Neundorf
On Thursday 23 August 2007 18:49, Alan W. Irwin wrote: On 2007-08-23 16:29-0500 Matthew Woehlke wrote: If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH=somwehere path-to-src', I find that 'make' in the build dir, when cmake needs to be re-run (IIRC 'cmake .' has the same problem)

[CMake] CMAKE_MODULE_PATH not remembered?

2007-08-23 Thread Matthew Woehlke
If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH=somwehere path-to-src', I find that 'make' in the build dir, when cmake needs to be re-run (IIRC 'cmake .' has the same problem) will then fail because it cannot find a module I INCLUDE(). I was able to work around the problem with the

[CMake] CMAKE_MODULE_PATH not for FooConfig.cmake?

2006-11-09 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, When I use FIND_PACKAGE(Foo), and set variable CMAKE_MODULE_PATH to my module directory, FooConfig.cmake doesn't get found. However, if I name it FindFoo.cmake, it gets found. Is CMAKE_MODULE_PATH for Findname.cmake but not for nameConfig.cmake? or am I not setting something