Commit d4bfbfbe authored by Lukasz Dorau's avatar Lukasz Dorau
Browse files

Enable CMAKE_NO_SYSTEM_FROM_IMPORTED globally

Do not treat include directories from the interfaces
of consumed Imported Targets as SYSTEM by default.
See the CMake documentation of CMAKE_NO_SYSTEM_FROM_IMPORTED
and NO_SYSTEM_FROM_IMPORTED for details.

The root cause of this change is to make sure
that TBB will not add its include directory
    '/usr/lib64/cmake/TBB/../../../include' (== '/usr/inlcude')
to gcc's CXX_INCLUDES flag with the '-isystem' option,
what can cause compilation errors, but the '-I' option
will be used instead.
See https://github.com/pmem/libpmemobj-cpp/issues/508
for more details.

Fixes: #508
parent 24748936
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment