From 1ce1e7fb013bd34ee5b72affe8c8f115445910e6 Mon Sep 17 00:00:00 2001 From: Lukas Nellen <lukas@nucleares.unam.mx> Date: Sat, 23 Feb 2019 18:17:00 -0600 Subject: [PATCH] Mark system (external) header files correctly Use -isystem to suppress warnings from headers --- Framework/Geometry/CMakeLists.txt | 6 ++++++ Processes/Pythia/CMakeLists.txt | 11 +++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Framework/Geometry/CMakeLists.txt b/Framework/Geometry/CMakeLists.txt index bb96c2ea6..f827de1f4 100644 --- a/Framework/Geometry/CMakeLists.txt +++ b/Framework/Geometry/CMakeLists.txt @@ -44,8 +44,14 @@ target_link_libraries ( target_include_directories ( CORSIKAgeometry + SYSTEM PUBLIC ${EIGEN3_INCLUDE_DIR} INTERFACE ${EIGEN3_INCLUDE_DIR} + ) + +target_include_directories ( + CORSIKAgeometry + INTERFACE $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include> $<INSTALL_INTERFACE:include/include> ) diff --git a/Processes/Pythia/CMakeLists.txt b/Processes/Pythia/CMakeLists.txt index 3947423de..b23c6d005 100644 --- a/Processes/Pythia/CMakeLists.txt +++ b/Processes/Pythia/CMakeLists.txt @@ -48,17 +48,12 @@ target_include_directories ( $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include> $<INSTALL_INTERFACE:include/include> ) -# do it again, since we want -isystem for pythia exteranls -target_include_directories ( - ProcessPythia - SYSTEM PUBLIC - ${PYTHIA8_INCLUDE_DIR} - ) target_include_directories ( ProcessPythia - PRIVATE - ${PYTHIA8_INCLUDE_DIR} + SYSTEM + PUBLIC ${PYTHIA8_INCLUDE_DIR} + INTERFACE ${PYTHIA8_INCLUDE_DIR} ) install ( -- GitLab