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

Remove trailing space from -isystem flag #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Quincunx271
Copy link

Fixes #105. For some reason, "${CMAKE_INCLUDE_SYSTEM_FLAG_${_language}}" expands to "-isystem " (with a trailing space). This caused problems where the compiler got a single argument as -isystem /path/to/include/dir and somehow didn't understand it properly (note that that's normally two arguments). This change removes that space, so you get -isystem/path/to/include/dir

I'm not sure if it's possible to get a relative include path, but in that case, this might not work. It might require passing two separate arguments to the compiler: -isystem and relative/include/path

@Quincunx271
Copy link
Author

It looks like this might be a duplicate of #134

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.

1 participant