What do you mean %h? Is this a literal character in your file? If so, then at least I've never heard of it.<br><br>You specify paths to header files using the include_directories command:<br><br>$ cmake --help-command include_directories<br>
cmake version 2.6-patch 1<br>------------------------------------------------------------------------------<br>SingleItem<br><br> include_directories<br> Add include directories to the build.<br><br> include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)<br>
<br> Add the given directories to those searched by the compiler for<br> include files. By default the directories are appended onto the<br> current list of directories. This default behavior can be changed by<br>
setting CMAKE_include_directories_BEFORE to ON. By using BEFORE or<br> AFTER you can select between appending and prepending, independent<br> from the default. If the SYSTEM option is given the compiler will be<br>
told that the directories are meant as system include directories on<br> some platforms.<br><br>James<br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 6:24 AM, ankit jain <span dir="ltr"><<a href="mailto:ankitguddu@gmail.com">ankitguddu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>hi all,</div>
<div> </div>
<div>How can we specify the path of header fiels at run time through cmake since i have a line in my C file as #include "%h"</div>
<div> </div>
<div> </div>
<div>Regards-</div>
<div>ankit jain</div>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>