dev-cafe / autocmake

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

Managing EXTRA_<LANG>FLAGS #193

Closed robertodr closed 7 years ago

robertodr commented 7 years ago

Add EXTRA_<LANG>FLAGS to CMAKE_<LANG>_FLAGS if the former are not an empty string.

Why? Strings starting with one (or more) empty spaces are not cached correctly by CMake. CMAKE_Fortran_FLAGS is (at least on my machine) empty to start with and appending an empty EXTRA_FCFLAGS caused some head-scratching when trying to augment the list of basic flags and caching inside a foreach loop.

bast commented 7 years ago

Thanks!