]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Use -isystem for third party headers
authorMatthias Maier <tamiko@43-1.org>
Thu, 2 Feb 2017 00:16:05 +0000 (18:16 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sun, 11 Feb 2018 15:56:31 +0000 (09:56 -0600)
cmake/macros/macro_deal_ii_setup_target.cmake
source/CMakeLists.txt

index cd1601e1633b1133aad6bd0321d9d31cac71b1f4..597f4360af2b85926060deac6ff9d63addf796e4 100644 (file)
@@ -103,9 +103,8 @@ MACRO(DEAL_II_SETUP_TARGET _target)
     SET(_build "RELEASE")
   ENDIF()
 
-  SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
-    INCLUDE_DIRECTORIES "${DEAL_II_INCLUDE_DIRS}"
-    )
+  TARGET_INCLUDE_DIRECTORIES(${_target} SYSTEM PRIVATE ${DEAL_II_INCLUDE_DIRS})
+
   SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY
     LINK_FLAGS " ${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"
     )
index 14c2e42fd1a9ecb19a239160e8049d69d8edd03b..cb8317746623b4ead8a07b4e88d70e1ac9827ffe 100644 (file)
@@ -23,6 +23,7 @@ INCLUDE_DIRECTORIES(
   ${CMAKE_BINARY_DIR}/include/
   ${CMAKE_SOURCE_DIR}/include/
   ${DEAL_II_BUNDLED_INCLUDE_DIRS}
+  SYSTEM
   ${DEAL_II_INCLUDE_DIRS}
   )
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.