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 <david.c...@kitware.com> wrote:

> 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 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 cannot load the file. Am I doing
>> this wrong? Keep in mind that I really want to PREPEND to the
>> CMAKE_MODULE_PATH variable, as I only want my custom directories to be
>> searched *first*, but I do not want to override the default search path for
>> include modules. How can I do this?
>>
>> _______________________________________________
>> 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
>>
>
>
_______________________________________________
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

Reply via email to