<div dir="ltr"><div dir="ltr">Yes, build type is known (e.g 

 value of ${CMAKE_BUILD_TYPE}  is shown in output).  I use command like this:<div>cmake .. -G Ninja  -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DCMAKE_PREFIX_PATH=%INSTALL_DIR% -DCMAKE_BUILD_TYPE=Release<br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Zdenko</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pi 27. 9. 2019 o 23:54 fdk17 <<a href="mailto:fdk17@ftml.net">fdk17@ftml.net</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div>Are you using a generator that uses CMAKE_BUILD_TYPE and has it set to a known value?  Build type doesn’t have to be set and multi-config generators don’t use it. <br></div><div><br></div><div>On Fri, Sep 27, 2019, at 4:18 PM, Zdenko Podobny wrote:<br></div><blockquote type="cite" id="gmail-m_-284193789547238913qt"><div dir="ltr"><div>Hello,<br></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:<br></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 <br></div><div>message(

 STATUS "CXX compiler  Release build options: ${CMAKE_CXX_FLAGS_RELEASE}")<br></div><div>works as expected.<br></div><div>Is it possible to do it in one line or I have to use if/elseif ?<br></div><div><br></div><div><div><div dir="ltr">Zdenko<br></div></div></div></div><div>-- <br></div><div><br></div><div>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br></div><div><br></div><div>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br></div><div><br></div><div>Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br></div><div><br></div><div>CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br></div><div>CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br></div><div>CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br></div><div><br></div><div>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br></div><div><br></div><div>Follow this link to subscribe/unsubscribe:<br></div><div><a href="https://cmake.org/mailman/listinfo/cmake" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br></div><div><br></div></blockquote><div><br></div></div>-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div></div>