<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><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="qt"><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 class="qt-gmail_signature" dir="ltr">Zdenko<br></div></div></div></div><div>-- <br></div><div><br></div><div>Powered by www.kitware.com<br></div><div><br></div><div>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<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: http://cmake.org/cmake/help/support.html<br></div><div>CMake Consulting: http://cmake.org/cmake/help/consulting.html<br></div><div>CMake Training Courses: http://cmake.org/cmake/help/training.html<br></div><div><br></div><div>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br></div><div><br></div><div>Follow this link to subscribe/unsubscribe:<br></div><div>https://cmake.org/mailman/listinfo/cmake<br></div><div><br></div></blockquote><div><br></div></body></html>