cmake-precompiled-header
cmake-precompiled-header copied to clipboard
-g flag not picked up for PCH compile
For some reason, the -g
flag is not in CMake's $<TARGET_PROPERTY:xxx,COMPILE_FLAGS>
nor
...COMPILE_OPTIONS
, and so doesn't get written to the .rsp
file.
This results in a warning of different options for pch and regular source compile.
Temporarily adding -g
to the export_all_flags
function fixed the warning.
Do you know Is there some other CMake property for the debug flag?
-std=c++11