Skip to content

Commit ba5a505

Browse files
committed
Mark includes as system to silence warnings from them.
1 parent 6e9f20a commit ba5a505

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
230230
# than llvm and the header files should be found first (even though the
231231
# LLVM_INCLUDE_DIRS) contain clang headers, too.
232232
if (USE_CLING)
233-
include_directories(${CLING_INCLUDE_DIRS})
233+
include_directories(SYSTEM ${CLING_INCLUDE_DIRS})
234234
endif(USE_CLING)
235-
include_directories(${CLANG_INCLUDE_DIRS})
236-
include_directories(${LLVM_INCLUDE_DIRS})
235+
include_directories(SYSTEM ${CLANG_INCLUDE_DIRS})
236+
include_directories(SYSTEM ${LLVM_INCLUDE_DIRS})
237237
separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
238238
add_definitions(${LLVM_DEFINITIONS_LIST})
239239

@@ -253,13 +253,13 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
253253
#
254254
# FIXME: We only support in-tree builds of clang, that is clang being built
255255
# in llvm_src/tools/clang.
256-
include_directories(${LLVM_BUILD_MAIN_SRC_DIR}/tools/clang/include/)
256+
include_directories(SYSTEM ${LLVM_BUILD_MAIN_SRC_DIR}/tools/clang/include/)
257257

258258
if (NOT LLVM_BUILD_BINARY_DIR)
259259
message(FATAL "LLVM_BUILD_* values should be available for the build tree")
260260
endif()
261261

262-
include_directories(${LLVM_BUILD_BINARY_DIR}/tools/clang/include/)
262+
include_directories(SYSTEM ${LLVM_BUILD_BINARY_DIR}/tools/clang/include/)
263263
endif()
264264

265265
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/)
@@ -303,13 +303,13 @@ endif ()
303303

304304
# FIXME: Use merge this with the content from the LLVMConfig and ClangConfig.
305305
if (NOT CPPINTEROP_BUILT_STANDALONE)
306-
include_directories(BEFORE
306+
include_directories(BEFORE SYSTEM
307307
${CMAKE_CURRENT_BINARY_DIR}/../clang/include
308308
${CMAKE_CURRENT_SOURCE_DIR}/../clang/include
309309
)
310310
endif()
311311

312-
include_directories(BEFORE
312+
include_directories(BEFORE SYSTEM
313313
${CMAKE_CURRENT_BINARY_DIR}/include
314314
${CMAKE_CURRENT_SOURCE_DIR}/include
315315
)

0 commit comments

Comments
 (0)