cmake-precompiled-header icon indicating copy to clipboard operation
cmake-precompiled-header copied to clipboard

Release flags are not picked to generate pch file

Open dlaugt opened this issue 6 years ago • 0 comments

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?

dlaugt avatar Dec 11 '18 21:12 dlaugt