dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
41 stars 18 forks source link

[Enhancement] Compiler flags selection #199

Open robertodr opened 7 years ago

robertodr commented 7 years ago

It would be useful to have a macro that would check if a compiler flag is available on the compiler at hand before adding it to the list of compiler flags. This would avoid build-time crashes because of flags that are not available and/or have changed name. This solution is interesting, but my limited tests show that it doesn't always work. The macro should be able to:

bast commented 7 years ago

I like the idea!