Dear CMake Community,

I would like to add an extra flag to CMAKE_CXX_FLAGS_RELEASE (-xHost
for Intel compilers), so in my CMakeLists.txt I add:
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -xHost" )

If I then run VERBOSE=1 make, I observe that the xHost flag is passed
to the compiler. If I view the GUI, however, (ccmake ..), and switch
the view to advanced, the flags are still listed as the default (-O3
-DNDEBUG).

Is this the intended behavior? Is there a way to specify additional
release build flags in CMakeLists.txt and have them reflected in the
GUI?

Thank you for your recommendations!
-- 

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