mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-20 06:00:30 -06:00
Generate `moc_predef.h` using the same C++ standard level that will be used to compile the target so that the compiler's predefined macros can be more accurately recovered. Fixes: #24624 Qt-Issue: https://bugreports.qt.io/browse/QTBUG-110847
4 lines
129 B
CMake
4 lines
129 B
CMake
file(READ ${in} predefs)
|
|
string(REGEX REPLACE "#define +" "#define CHECK_" predefs "${predefs}")
|
|
file(WRITE ${out} "${predefs}")
|