[CMake] Remove compilation flags for a given target

Benjamin Orgogozo borgogozo at antidot.net
Tue Apr 9 02:44:02 EDT 2019


On Thu, Apr 04, 2019 at 06:00:43PM +0200, Mateusz Loskot wrote:
> The list should rather be, in preference/priority order
> 
> 1. https://cmake.org/cmake/help/latest/command/target_compile_options.html
> 2. add_compile_options

Yes, it's what I understood from documentation.

> Are you certain you've got the variable name right?
> https://cmake.org/cmake/help/latest/search.html?q=CXX_COMPILE_FLAGS

Yes yes, I triple checked it. But I would have preferred to have made an
error here. :)

> See  https://cmake.org/pipermail/cmake/2018-December/068716.html

Thanks for the link and your time.

-- 
 Benjamin Orgogozo


More information about the CMake mailing list