Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-g flag not picked up for PCH compile #14

Open
tamboril opened this issue Dec 29, 2017 · 1 comment
Open

-g flag not picked up for PCH compile #14

tamboril opened this issue Dec 29, 2017 · 1 comment

Comments

@tamboril
Copy link

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?

@demon90s
Copy link

demon90s commented Jun 6, 2018

-std=c++11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants