diff --git a/grid_map_loader/CMakeLists.txt b/grid_map_loader/CMakeLists.txt index 40a8a53bb..7731b1f6d 100644 --- a/grid_map_loader/CMakeLists.txt +++ b/grid_map_loader/CMakeLists.txt @@ -37,8 +37,9 @@ catkin_package( ## Specify additional locations of header files ## Your package locations should be listed before other locations -include_directories( - include +target_include_directories(${PROJECT_NAME} + PRIVATE + include SYSTEM ${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR} @@ -107,4 +108,4 @@ if(cmake_clang_tools_FOUND) add_default_clang_tooling( DISABLE_CLANG_FORMAT ) -endif(cmake_clang_tools_FOUND) \ No newline at end of file +endif(cmake_clang_tools_FOUND)