On 11/04/2016 09:02 AM, Robert Goulet wrote:
> What is the clean way to start a new project with no build flags at all.
> i.e. CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, etc. all set to no value?
> Is there a way to force this for all platforms/compilers? Thanks!

There is a hook just before the flags are initialized in the cache that
gives project code a chance to change the initializers.  See

  https://cmake.org/cmake/help/v3.7/variable/CMAKE_USER_MAKE_RULES_OVERRIDE.html

There is also a per-language CMAKE_USER_MAKE_RULES_OVERRIDE_{C,CXX} version.

-Brad

-- 

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-developers

Reply via email to