]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Use -isystem in INSOURCE_SETUP_TARGET macro
authorMatthias Maier <tamiko@43-1.org>
Sun, 11 Feb 2018 15:55:53 +0000 (09:55 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sun, 11 Feb 2018 15:58:16 +0000 (09:58 -0600)
cmake/macros/macro_deal_ii_insource_setup_target.cmake

index 4c7efcb00bef70b378e629cf58d3a567d3faad0e..35485e54bb238de09ec405beaca3315135ce4a27 100644 (file)
@@ -31,13 +31,14 @@ MACRO(DEAL_II_INSOURCE_SETUP_TARGET _target _build)
     LINKER_LANGUAGE "CXX"
     RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
     )
-  SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
-    INCLUDE_DIRECTORIES
+
+  TARGET_INCLUDE_DIRECTORIES(${_target}
+    PRIVATE
       "${CMAKE_BINARY_DIR}/include"
       "${CMAKE_SOURCE_DIR}/include"
       ${DEAL_II_BUNDLED_INCLUDE_DIRS}
-      ${DEAL_II_INCLUDE_DIRS}
     )
+  TARGET_INCLUDE_DIRECTORIES(${_target} SYSTEM PRIVATE ${DEAL_II_INCLUDE_DIRS})
 
   IF(CMAKE_VERSION VERSION_LESS 3.9 OR CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
     SET_PROPERTY(TARGET ${_target} APPEND_STRING PROPERTY

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.