<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks.&nbsp; I just worked around it by checking the generator for
    visual studio and then doing something like:<br>
    <br>
    include_directories ("path_to_lib/$(Outdir)/include")<br>
    <br>
    That works at least in VS.&nbsp; <br>
    <br>
    I may have to do a similar thing with link_directories.<br>
    <br>
    Kevin<br>
    <br>
    On 12/29/2011 11:18 AM, Robert Dailey wrote:
    <blockquote
cite="mid:CAAScX1atrCQVdcXziVp5d1SkitUv5YzcXYADLAeMarzkqa5ftQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      I was asking about this a couple of weeks ago. David Cole has
      expressed interest, and it seems it has been placed on the roadmap
      to implement this feature. However, for the time being this can't
      be done. There are a couple of workarounds I know of, but none of
      which are CMake workarounds. I've had to use preprocessor
      conditions in my source files to turn certain ones on or off
      depending on my configuration.<br clear="all">
      <div><br>
      </div>
      <div>---------</div>
      Robert Dailey<br>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Dec 29, 2011 at 10:48 AM, Kevin
        Burge <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:kevin.burge@systemware.com">kevin.burge@systemware.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          I'm trying to get my large project (built of many sub-projects
          and external projects) to build correctly in Visual Studio,
          allowing the user to compile release/debug from the UI. &nbsp;One
          problem I have: I'm building an external library, and I've
          customized ExternalProject to keep per-configuration builds of
          the external projects. &nbsp;The problem I'm now facing that I
          don't see a resolution to: I need include_directories to allow
          per-configuration includes. &nbsp;I.e.<br>
          <br>
          include_directories (third_party_INCLUDE_DIR_DEBUG)<br>
          <br>
          or<br>
          <br>
          include_directories (third_party_INCLUDE_DIR_RELEASE)<br>
          <br>
          I tried setting COMPILE_FLAGS with -I... for the target, but
          cmake seems to ignore that when generating the Visual Studio
          2005 project files. &nbsp;There doesn't seem to be a way to force
          the include into the visual studio project files.<br>
          <br>
          Is there a way I can do this?<br>
          <br>
          Thanks,<br>
          Kevin<span class="HOEnZb"><font color="#888888"><br>
              <br>
              --<br>
              <br>
              Powered by <a moz-do-not-send="true"
                href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
              <br>
              Visit other Kitware open-source projects at <a
                moz-do-not-send="true"
                href="http://www.kitware.com/opensource/opensource.html"
                target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
              <br>
              Please keep messages on-topic and check the CMake FAQ at:
              <a moz-do-not-send="true"
                href="http://www.cmake.org/Wiki/CMake_FAQ"
                target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
              <br>
              Follow this link to subscribe/unsubscribe:<br>
              <a moz-do-not-send="true"
                href="http://www.cmake.org/mailman/listinfo/cmake"
                target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
            </font></span></blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>