<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Unfortunately, the standard values for CMAKE_BUILD_TYPE only have
      their first letter capitalized, i.e. for a release build
      CMAKE_BUILD_TYPE will normally be "Release". To use it like you
      want to, it would need to be "RELEASE". To get around this
      problem, we define an all upper-case BUILD_TYPE in our projects,
      i.e.:</p>
    <p><tt>string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE)</tt><tt><br>
      </tt><tt>message(STATUS "CXX compiler ${CMAKE_BUILD_TYPE} build
        options: ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}}")</tt></p>
    <p>If you do this, keep in mind what fdk17 said - CMAKE_BUILD_TYPE
      may not be set depending on the generator you use.<br>
    </p>
    <div class="moz-cite-prefix">Am 27.09.19 um 22:18 schrieb Zdenko
      Podobny:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJbzG8xQy5vkSP=8ZmL0cnpFoJ+26kOkup4H-ATX4EX+NoCBeg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>I try to print 
          CMAKE_CXX_FLAGS_DEBUG/CMAKE_CXX_FLAGS_RELEASE as one line
          statement but is does not work for me:</div>
        <div><br>
        </div>
        <div>message( STATUS "CXX compiler ${CMAKE_BUILD_TYPE} build
          options: ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}}")<br>
        </div>
        <div><br>
        </div>
        <div>Produce empy result, but </div>
        <div>message( STATUS "CXX compiler  Release build options:
          ${CMAKE_CXX_FLAGS_RELEASE}")<br>
        </div>
        <div>works as expected.</div>
        <div>Is it possible to do it in one line or I have to use
          if/elseif ?</div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">Zdenko</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
    <div class="moz-signature">-- <br>
      <div style="width:480px; text-align: left; font-family: Arial,
        Helvetica, sans-serif;">
        <p style="color: #062d64; font-size: 14px; text-align: left;
          font-family: Arial, Helvetica, sans-serif;">
          <b>Dr. Eric Dönges</b>
          <br>
          Senior Software Engineer
        </p>
        <p style="color: #062d64; font-size: 12px; text-align: left;
          font-family: Arial, Helvetica, sans-serif;">MVTec Software
          GmbH | Arnulfstr. 205 | 80634 Munich | Germany
          <br>
          <a style="font-size: 12px; font-family: Arial, Helvetica,
            sans-serif; color: #062d64;"
            href="mailto:mustermann@mvtec.com">doenges@mvtec.com</a> |
          Tel: +49 89 457 695-0 | <a style="font-size: 12px;
            font-family: Arial, Helvetica, sans-serif; color: #062d64;"
            href="http://www.mvtec.com">www.mvtec.com</a>
          <br>
        </p>
        <p>
          <span style="font-size: 12px; font-family: Arial, Helvetica,
            sans-serif; color: #062d64;">Find our privacy policy <a
              style="font-size: 12px; font-family: Arial, Helvetica,
              sans-serif; color: #062d64;"
              href="https://www.mvtec.com/imprint">here</a>.</span> </p>
        <p style="color: #062d64; font-size: 12px; text-align: left;
          font-family: Arial, Helvetica, sans-serif;"><img
src="https://mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/newsletter-icon.png"
            valign="bottom" width="16" height="16"> <a style="font-size:
            12px; font-family: Arial, Helvetica, sans-serif; color:
            #062d64; font-weight: bold;"
            href="https://www.mvtec.com/newsletter">Sign up</a> for our
          MVTec Newsletter!</p>
        <p style="margin: 0px; color: #666; font-size: 12px; text-align:
          left; font-family: Arial, Helvetica, sans-serif;">Geschäftsführer:
          Dr. Wolfgang Eckstein, Dr. Olaf Munkelt<br>
          Amtsgericht München HRB 114695</p>
        <p style="margin: 0px; color: #666; font-size: 12px; text-align:
          left; font-family: Arial, Helvetica, sans-serif;"> </p>
        <img
src="https://www.mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/mvtec-logo-line.png"
          alt="MVTec Software GmbH Logo"></div>
    </div>
  </body>
</html>