On 1/30/2017 4:44 AM, Nils Gladitz wrote:
On 01/30/2017 12:44 PM, Edward Diener wrote:

Using the cmake gui program of the latest cmake 3.7.2 I add a cache
entry of CMAKE_CXX_FLAGS to some compile flag value, but as soon as I
hit the generate button the cache entry disappears and is no longer
retained. Is CMAKE_CXX_FLAGS no longer a valid cmake variable ? If it
is not a valid cmake variable, what cmake variable can I use to add a
cpp compiler flag to my cmake build ?


CMAKE_CXX_FLAGS is an advanced cache variable that should implicitly
exist in a C++ project (it does not have to be added).
Advanced cache variables are hidden by default.
Did you check the "Advanced" option in cmake-gui?

That was it. Thanks !

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to