<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this the intended behavior?</blockquote><div><br></div><div>Yes.  The GUI is essentially an editor for the CMake cache.  These variables are persistent with global scope.  As such, only the cache values are reflected in the GUI.  When you set the CMAKE_CXX_FLAGS_RELEASE with this form of the set command, you are changing it's value in the current scope, but not in the cache, hence no updated value in the GUI.<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Is there a way to specify additional<br>
release build flags in CMakeLists.txt and have them reflected in the<br>
GUI?<br></blockquote><div><br></div><div>You can update the cache entry with the alternate signature for set:<br><br></div><div><span style="font-family:monospace,monospace">set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -xHost" CACHE STRING "Flags used by the compiler during release builds." FORCE)</span><br><br></div><div>The "FORCE" option is necessary to change an existing cache entry.  See details for setting cache values here: <a href="http://www.cmake.org/cmake/help/v3.3/command/set.html">http://www.cmake.org/cmake/help/v3.3/command/set.html</a><br><br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thank you for your recommendations!<br></blockquote><div><br></div><div>You're welcome :-)<br><br></div><div>- Chuck</div><br></div></div></div>