On Mon, Dec 1, 2008 at 11:52 PM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, Dec 1, 2008 at 9:53 PM, Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote">include( ${CMAKE_CURRENT_SOURCE_DIR}/includes.cmake)<br><div>should also work.<br>CMAKE_MODULE_PATH may also help you if you have a lot of includes.<br><br><a href="http://www.vtk.org/Wiki/CMake_Useful_Variables" target="_blank">http://www.vtk.org/Wiki/CMake_Useful_Variables</a></div>
</div></blockquote></div><br></div>I definitely tried this (using CMAKE_CURRENT_SOURCE_DIR) and it didn't work. I'll try Michael's method tomorrow and see if I get any different results.<br>
</blockquote></div><br>I can't replicate this as a bug. Maybe your setup differs substantially from this (which works fine on CMake 2.6.2)? Apparantly the use of ${CMAKE_CURRENT_SOURCE_DIR} is superfluous.<br><br><br>
CMakeLists.txt:<br>PROJECT(foo)<br>INCLUDE(bar.cmake)<br>ADD_SUBDIRECTORY(subdir)<br><br>bar.cmake:<br>MESSAGE(bar)<br><br clear="all">subdir/CMakeLists.txt:<br>INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/baz.cmake)<br><br>subdir/baz.cmake:<br>
MESSAGE(baz)<br><br>-- <br>Philip Lowman<br>