cmake-precompiled-header
cmake-precompiled-header copied to clipboard
Release flags are not picked to generate pch file
For gcc in release mode, -DNDEBUG flag is missing when pch is generated.
As the pch is not generated with the same flags, it is not used during the compilation of objects. For example, the following warning appears: precompiled.h.gch/.c++: not used because `NO_INLINE' not defined [-Winvalid-pch]
Could we have the same flags for the pch generation and the compilation?