(cmake): cmake configure appends spaces in compilation flags
Summary
- cmake configure appends spaces in compilation flags on Windows
Steps to reproduce
- launch cmake configure several times
-
CMAKE_CXX_FLAGS
contains a lot of spaces at the end (one more for each configuration)
Dev environment
- OS: Windows
- Compiler: msvc 2017/2019
- Build type: debug/release
- Commit: all commits after the merge of Sight/sight!258
What is the current bug behavior?
After a cmake configuration it's necessary to rebuild everything (each time)
What is the expected correct behavior?
Ninja mustn't rebuild what is already built
Possible fixes
Strip all CMAKE_CXX_FLAGS_*