<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body style="" bgcolor="#FFFFFF" text="#000000">
    Did you try to create two targets and add per-target compile flags?<br>
    <br>
    Something along the lines of<br>
    add_library(mylib_rel ${sources})<br>
    add_library(mylib_dbg ${sources})<br>
    set_target_properties(mylib_rel PROPERTIES COMPILE_FLAGS -O3)<br>
    set_target_properties(mylib_dbg PROPERTIES COMPILE_FLAGS -O0 -g)<br>
    <br>
    Not entirely sure if COMPILE_FLAGS is a valid property of targets
    though, but I would imagine there is a solution which looks similar
    to this..<br>
    <br>
    Cheers,<br>
    Yngve<br>
    <br>
    <div class="moz-cite-prefix">On 02/06/2013 08:09 PM, Patrick
      Johnmeyer wrote:<br>
    </div>
    <blockquote
cite="mid:CAMM1b9Q3XZTqnLJs1E12DmtX+nhXYqEtCBV3=-A-7E+rFYz1OQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="font-family:arial,sans-serif;font-size:13px">I have
          looked through the CMake wikis and several mailing list
          threads that the following google search returned, and I have
          not found a definitive answer to my question.</span>
        <div style="font-family:arial,sans-serif;font-size:13px">
          <br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">[site:<a
            moz-do-not-send="true"
            href="http://www.cmake.org/pipermail/cmake" target="_blank">www.cmake.org/pipermail/cmake</a>&nbsp;CPack
          multiple configurations in one package]<br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">My team
          delivers debug and release libraries, built under Visual
          Studio. We would like to package the debug and release
          libraries in a single zip file. However, I can only figure out
          how to get CPack to generate the zip for one configuration at
          a time. I could merge the two zip files after the fact, but it
          seems to me that there must be an easy way to get CPack to do
          this. Is there?</div>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">Regards,</div>
        <div style="font-family:arial,sans-serif;font-size:13px">pj</div>
      </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>