<p>May be you need something like this?</p><p></p><p>include_directories (C:\includes\foo\all)</p><p>if (CMAKE_BUILD_STATUS STREQUAL &quot;Debug&quot;)</p><p>&nbsp; include_directories (C:\includes\foo\debug)</p><p>elseif (CMAKE_BUILD_STATUS STREQUAL &quot;Release&quot;)</p>
<p>&nbsp; include_directories (C:\includes\foo\release)</p><p>endif (CMAKE_BUILD_STATUS STREQUAL &quot;Debug&quot;)</p><br><div class="gmail_quote">On Thu, Dec 18, 2008 at 11:13 PM, Robert Dailey <span dir="ltr">&lt;<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Would it be possible to add configuration support to include_directories()? For example, some include directories I only want to show up in debug, some in release, and some in all configurations. I imagine this would look a lot like target_link_libraries():<br>

<br><span style="font-family:courier new,monospace">include_directories(<br>&nbsp;&nbsp;&nbsp; C:\includes\foo\all # This include path applies to all configurations<br style="font-family:courier new,monospace"></span><span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp; debug C:\includes\foo\debug # This include path only shows up in debug configurations</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp; release C:\includes\foo\release # This include path only shows up in release configurations<br>)<br></span>
<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><br clear="all"><br>-- <br>No fate, but what we make!<br>