From 7d691da66e3ee98a47fe80ab0bd2851de17bb661 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 10 Feb 2021 13:52:06 +0100 Subject: [PATCH] [CPM] Mark includes as SYSTEM. --- scripts/cmake/Dependencies.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index 13083afd415..d9bde5ead48 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -16,7 +16,7 @@ if(BUILD_TESTING) ) if(autocheck_ADDED) add_library(autocheck INTERFACE IMPORTED) - target_include_directories(autocheck INTERFACE ${autocheck_SOURCE_DIR}/include) + target_include_directories(autocheck SYSTEM INTERFACE ${autocheck_SOURCE_DIR}/include) endif() CPMAddPackage( @@ -39,7 +39,7 @@ CPMAddPackage( ) if(exprtk_ADDED) add_library(exprtk INTERFACE IMPORTED) - target_include_directories(exprtk INTERFACE ${exprtk_SOURCE_DIR}) + target_include_directories(exprtk SYSTEM INTERFACE ${exprtk_SOURCE_DIR}) endif() CPMAddPackage( @@ -56,7 +56,7 @@ CPMAddPackage( ) if(tclap_ADDED) add_library(tclap INTERFACE IMPORTED) - target_include_directories(tclap INTERFACE ${tclap_SOURCE_DIR}/include) + target_include_directories(tclap SYSTEM INTERFACE ${tclap_SOURCE_DIR}/include) endif() CPMAddPackage( -- GitLab