blt icon indicating copy to clipboard operation
blt copied to clipboard

Override system include flag when necessary

Open kennyweiss opened this issue 1 year ago • 0 comments

@tomstitt noticed that CMake was not properly using isystem for system includes with the XL compiler and discovered that this can be overridden via the CMake variable: CMAKE_INCLUDE_SYSTEM_FLAG_CXX

e.g.

-DCMAKE_INCLUDE_SYSTEM_FLAG_CXX="-isystem"

Should BLT incorporate this? At the very least, we might consider noting this in our user/API docs.

Note: This could potentially also be helpful for versions of MSVC that do not properly set its corresponding system include flag.

kennyweiss avatar Nov 22 '23 20:11 kennyweiss