Re: [CMake] How to find the path to the currently include() or find_package file()

2011-01-04 Thread David Cole
On Tue, Jan 4, 2011 at 2:00 AM, Michael Hertling wrote: > On 01/04/2011 07:41 AM, Michael Hertling wrote: >> On 01/04/2011 05:47 AM, John McGehee wrote: >>> I am using CMake 2.8 on Linux and Windows. >>> >>> When I include() or find_package() a .cmake file, is there a variable that >>> I can use

Re: [CMake] How to find the path to the currently include() or find_package file()

2011-01-03 Thread Michael Hertling
On 01/04/2011 07:41 AM, Michael Hertling wrote: > On 01/04/2011 05:47 AM, John McGehee wrote: >> I am using CMake 2.8 on Linux and Windows. >> >> When I include() or find_package() a .cmake file, is there a variable that I >> can use within the included .cmake file that will tell me its path? >> >

Re: [CMake] How to find the path to the currently include() or find_package file()

2011-01-03 Thread Michael Hertling
On 01/04/2011 05:47 AM, John McGehee wrote: > I am using CMake 2.8 on Linux and Windows. > > When I include() or find_package() a .cmake file, is there a variable that I > can use within the included .cmake file that will tell me its path? > > For example, > > # In CMakeLists.txt > include(

[CMake] How to find the path to the currently include() or find_package file()

2011-01-03 Thread John McGehee
I am using CMake 2.8 on Linux and Windows. When I include() or find_package() a .cmake file, is there a variable that I can use within the included .cmake file that will tell me its path? For example, # In CMakeLists.txt include(somePath/foo.cmake) Within somePath/foo.cmake, I want to incl