cotire icon indicating copy to clipboard operation
cotire copied to clipboard

Remove trailing space from `-isystem ` flag

Open Quincunx271 opened this issue 7 years ago • 1 comments

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 avatar Jul 17 '18 21:07 Quincunx271

It looks like this might be a duplicate of #134

Quincunx271 avatar Jul 17 '18 21:07 Quincunx271