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

correctly pass list to generator expression #97

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

dvirtz
Copy link
Contributor

@dvirtz dvirtz commented Feb 23, 2019

The real cause to the CMP0076 warnings is that passing lists to generator expressions should be done inside quotes. Once the quotes are added the warning disappears. Note also that according to documentation "A path that begins with a generator expression is always left unmodified." so a properly written generator expression should not trigger this warning.

The code as it is now causes CMake to add absolute path INTERFACE_SOURCES to the installed library which is wrong.

@foonathan foonathan merged commit acd09bb into foonathan:master Feb 26, 2019
@foonathan
Copy link
Owner

Thank you, that makes a lot more sense!

@dvirtz dvirtz deleted the pr.target_sources branch February 26, 2019 19:35
foonathan added a commit to foonathan/lex that referenced this pull request May 18, 2019
foonathan added a commit to foonathan/lex that referenced this pull request May 22, 2019
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

Successfully merging this pull request may close these issues.

2 participants