You should look at the CMAKE__LANG_FLAGS_INIT (
https://cmake.org/cmake/help/v3.8/variable/CMAKE_LANG_FLAGS_INIT.html
) set of variables they are designed to resolve this issue.
On Fri, Jun 2, 2017 at 11:03 PM, Marco Satti wrote:
> Hi, I am trying to let the user pick their own compiler/linker fl
Hi, I am trying to let the user pick their own compiler/linker flags through
the cache, whilst providing sane defaults.
The problem is, I rely on the CMAKE_CXX_COMPILER_ID variable to set these
defaults which is only available after the project() command is used. This
also causes the CMAKE_CXX