Le lun. 10 sept. 2018 à 14:34, Stéphane Ancelot <sance...@numalliance.com>
a écrit :

> Hi,
>
> In one project I need to compile with -O2 option , how to set it and
> remove -O3 -DNDEBUG flags for this project ?
>

May be you can create a new Build Type with appropriate flags:
https://gitlab.kitware.com/cmake/community/wikis/FAQ#how-can-i-extend-the-build-modes-with-a-custom-made-one-

and set it as the default build type for this particular project?
https://gitlab.kitware.com/cmake/community/wikis/FAQ#how-can-i-change-the-default-build-mode-and-see-it-reflected-in-the-gui
https://blog.kitware.com/cmake-and-the-default-build-type/


> --
Eric
-- 

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:
https://cmake.org/mailman/listinfo/cmake

Reply via email to