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
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" )
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
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 $ :
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
>
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
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