From: Matthias Maier Date: Sun, 11 Feb 2018 15:55:53 +0000 (-0600) Subject: CMake: Use -isystem in INSOURCE_SETUP_TARGET macro X-Git-Tag: v9.0.0-rc1~444^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46fa2832903390e9317c7e5741c91bc6a88416e5;p=dealii.git CMake: Use -isystem in INSOURCE_SETUP_TARGET macro --- diff --git a/cmake/macros/macro_deal_ii_insource_setup_target.cmake b/cmake/macros/macro_deal_ii_insource_setup_target.cmake index 4c7efcb00b..35485e54bb 100644 --- a/cmake/macros/macro_deal_ii_insource_setup_target.cmake +++ b/cmake/macros/macro_deal_ii_insource_setup_target.cmake @@ -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