[CMake] Ignore warnings in system headers
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
index 2364dce..ef3a140 100644 (file)
@@ -227,7 +227,7 @@ endif ()
 list(APPEND WTF_SOURCES
     unicode/icu/CollatorICU.cpp
 )
-list(APPEND WTF_INCLUDE_DIRECTORIES
+set(WTF_SYSTEM_INCLUDE_DIRECTORIES
     ${ICU_INCLUDE_DIRS}
 )
 list(APPEND WTF_LIBRARIES
@@ -256,6 +256,7 @@ WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
 
 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
 include_directories(${WTF_INCLUDE_DIRECTORIES})
+include_directories(SYSTEM ${WTF_SYSTEM_INCLUDE_DIRECTORIES})
 add_library(WTF ${WTF_LIBRARY_TYPE} ${WTF_HEADERS} ${WTF_SOURCES})
 target_link_libraries(WTF ${WTF_LIBRARIES})
 set_target_properties(WTF PROPERTIES COMPILE_DEFINITIONS "BUILDING_WTF")