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

-g flag not picked up for PCH compile

Open tamboril opened this issue 6 years ago • 1 comments

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?

tamboril avatar Dec 29 '17 15:12 tamboril

-std=c++11

demon90s avatar Jun 06 '18 08:06 demon90s