diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c4229ed5..16fa5d4c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,7 +242,7 @@ else() endif() # Add the bundled version of eigen to the include path so that it can still be included # with #include - include_directories(BEFORE "gtsam/3rdparty/Eigen/") + include_directories(BEFORE SYSTEM "gtsam/3rdparty/Eigen/") # set full path to be used by external projects # this will be added to GTSAM_INCLUDE_DIR by gtsam_extra.cmake.in