<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">Have a look at the documentation :
<p class="p1"><span class="s1">https://cmake.org/cmake/help/v3.13/</span></p>
</div>
<div name="messageReplySection">Le 6 déc. 2018 à 09:51 +0100, Andy <borucki.andrzej@gmail.com>, a écrit :<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>In cmake I have:</div>
<div>if (${CMAKE_BUILD_TYPE} STREQUAL Release)<br />
  message(WARNING "Release")<br />
endif()<br />
<br />
if (${CMAKE_BUILD_TYPE} STREQUAL Debug)<br />
  message(WARNING "Debug")<br />
endif()<br /></div>
<div><br /></div>
<div>(how write something like elseif?)</div>
<div><br /></div>
<div>If I call "cmake ." it write: "Warning:Debug"</div>
<div>Debug is default and I must call "cmake . -DCMAKE_BUILD_TYPE=Release"</div>
<div>for release?<br /></div>
</div>
</div>
</div>
--<br />
<br />
Powered by www.kitware.com<br />
<br />
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br />
<br />
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br />
<br />
CMake Support: http://cmake.org/cmake/help/support.html<br />
CMake Consulting: http://cmake.org/cmake/help/consulting.html<br />
CMake Training Courses: http://cmake.org/cmake/help/training.html<br />
<br />
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br />
<br />
Follow this link to subscribe/unsubscribe:<br />
https://cmake.org/mailman/listinfo/cmake<br /></blockquote>
</div>
</body>
</html>