From e33ecee4a4ce30876429e1e5bf7ed040efeba824 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Mon, 5 Aug 2019 15:26:45 +0200 Subject: [PATCH] cmake: use SYSTEM when include directories --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7af21928..3fc08c34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ ENDIF(APPLE) setup_hpp_project() add_required_dependency("eigen3 >= 3.0.0") -include_directories(${EIGEN3_INCLUDE_DIRS}) +include_directories(SYSTEM ${EIGEN3_INCLUDE_DIRS}) # Add a cache variable to allow not compiling and running tests set (RUN_TESTS TRUE CACHE BOOL "compile and run unit tests") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 523a1974..3ffd1688 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -83,7 +83,7 @@ set(${LIBRARY_NAME}_SOURCES ) # Declare boost include directories -include_directories(${Boost_INCLUDE_DIRS}) +include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) add_library(${LIBRARY_NAME} diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 046d21ae..88ae1896 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -18,7 +18,7 @@ macro(add_fcl_test test_name) endmacro(add_fcl_test) include_directories(${CMAKE_CURRENT_BINARY_DIR}) -include_directories(${Boost_INCLUDE_DIRS}) +include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) add_fcl_test(test_fcl_math test_fcl_math.cpp) -- GitLab