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
Please register or sign in to comment