<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi!<br>
    <br>
    It's pity, but CMAKE_BUILD_TYPE is empty for CMake Visual Studio
    generator.<br>
    <br>
    04.05.2012 23:40, Tim Gallagher &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1083;:
    <blockquote
cite="mid:664801226.6838185.1336164011488.JavaMail.root@mail2.gatech.edu"
      type="cite">
      <style type="text/css">p { margin: 0; }</style>
      <div style="font-family: times new roman,new york,times,serif;
        font-size: 12pt; color: #000000">Put an:<br>
        <br>
        if(CMAKE_BUILD_TYPE STREQUAL "Debug")<br>
        endif()<br>
        <br>
        guard around the set_property call.<br>
        <br>
        Tim<br>
        <br>
        <hr id="zwchr">
        <div
style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From:
          </b>"Robert Dailey" <a class="moz-txt-link-rfc2396E" href="mailto:rcdailey.lists@gmail.com">&lt;rcdailey.lists@gmail.com&gt;</a><br>
          <b>To: </b>"CMake ML" <a class="moz-txt-link-rfc2396E" href="mailto:cmake@cmake.org">&lt;cmake@cmake.org&gt;</a><br>
          <b>Sent: </b>Friday, May 4, 2012 4:16:47 PM<br>
          <b>Subject: </b>[CMake] Setting COMPILE_FLAGS property on a
          target in only debug?<br>
          <br>
          I'm doing the following:
          <div><br>
          </div>
          <div>
            <div><span class="Apple-tab-span" style="white-space:pre"> </span>set_property(
              TARGET ${target_name} APPEND_STRING PROPERTY</div>
            <div><span class="Apple-tab-span" style="white-space:pre"> </span>COMPILE_FLAGS
              "/ZI /Gy "</div>
            <div><span class="Apple-tab-span" style="white-space:pre"> </span>)</div>
          </div>
          <div><br>
          </div>
          <div>However this applies to all configurations. I want to
            only set this compiler flag for debug builds, not release.
            How can I do this?</div>
          <br>
          --<br>
          <br>
          Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at
          <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Please keep messages on-topic and check the CMake FAQ at:
          <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--

Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
    </blockquote>
    <br>
  </body>
</html>