Do not include vespa as system headers.
@@ -53,7 +53,7 @@ function(vespa_add_package_dependency PACKAGE_NAME)
set(PACKAGE_INCLUDE_DIR ${${PACKAGE_NAME}_INCLUDE_DIR})
set(PACKAGE_LIBRARIES ${${PACKAGE_NAME}_LIBRARIES})
link_libraries(${PACKAGE_LIBRARIES})
- include_directories(SYSTEM ${PACKAGE_INCLUDE_DIR})
+ include_directories(${PACKAGE_INCLUDE_DIR})
endfunction()
# TODO: Merge this function into add_target_system_dependency
@@ -63,7 +63,7 @@ function(vespa_add_target_package_dependency TARGET PACKAGE_NAME)
set(PACKAGE_INCLUDE_DIR ${${PACKAGE_NAME}_INCLUDE_DIR})
set(PACKAGE_LIBRARIES ${${PACKAGE_NAME}_LIBRARIES})
target_link_libraries(${TARGET} PUBLIC ${PACKAGE_LIBRARIES})
- target_include_directories(${TARGET} SYSTEM PUBLIC ${PACKAGE_INCLUDE_DIR})
+ target_include_directories(${TARGET} PUBLIC ${PACKAGE_INCLUDE_DIR})
endfunction()
function(vespa_add_target_system_dependency TARGET PACKAGE_NAME)
@@ -531,8 +531,8 @@ function(__export_include_directories TARGET)
get_directory_property(LOCAL_INCLUDE_DIRS INCLUDE_DIRECTORIES)
get_target_property(TARGET_TYPE ${TARGET} TYPE)
if(TARGET_TYPE STREQUAL INTERFACE_LIBRARY)
- target_include_directories(${TARGET} SYSTEM INTERFACE ${LOCAL_INCLUDE_DIRS})
+ target_include_directories(${TARGET} INTERFACE ${LOCAL_INCLUDE_DIRS})
else()
- target_include_directories(${TARGET} SYSTEM PUBLIC ${LOCAL_INCLUDE_DIRS})
+ target_include_directories(${TARGET} PUBLIC ${LOCAL_INCLUDE_DIRS})
endif()
endfunction()
