[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 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 "{CMAKE_SOURCE_DIR}/cmake" )

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 wrote: > I want to set a couple of custom directorie

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Robert Dailey
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 On Thu, Apr 9, 2009 at 12:17 PM, David Cole wrote: > You are missing a $ :

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 >

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 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 should have

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 wrote: > > On Thursday 09 April 2009 11:58:55 am Robert Dailey wrote: > > > Sorry, the missing $ was a typo. The problem was that I w