Will this work in Visual Studio? How does CMake know to place the appropriate include directories in the appropriate configuration?<br><br>I also was not able to find CMAKE_BUILD_STATUS in the 2.6 documentation. Where can I read about this variable?<br>
<br>On Sun, Dec 21, 2008 at 1:49 PM, Andrey Sploshnov <span dir="ltr">&lt;<a href="mailto:ice.nightcrawler@gmail.com">ice.nightcrawler@gmail.com</a>&gt;</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;">
<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"><div><div></div><div class="Wj3C7c">On Thu, Dec 18, 2008 at 11:13 PM, Robert Dailey <span dir="ltr">&lt;<a href="mailto:rcdailey@gmail.com" target="_blank">rcdailey@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">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></div></div>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">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><font color="#888888"><br><br clear="all"><br>-- <br>No fate, but what we make!<br>

</font><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>