[CMake] CMAKE_CURRENT_SOURCE_DIR for modules

James Bigler jamesbigler at gmail.com
Tue Sep 30 11:57:19 EDT 2008


Thannks, I just noticed this from poking around the documentation.

This helps when including cmake scripts, but if I want to do a
configure_file(somefile...), I'll need the path to my scripts.

James

On Tue, Sep 30, 2008 at 9:46 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> James Bigler wrote:
>>
>> Sure, but how can I do this from within FindMyPackage.cmake?
>>
>
> Leave off the .cmake.
>
>
> include(extrastuff)
>
> should work if CMAKE_MODULE_PATH is set correctly.
>
> -Bill
>


More information about the CMake mailing list