From a4885192e49fa7638a8313e346d34459b883abef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Sat, 16 Sep 2023 22:00:03 +0300 Subject: [PATCH] Do not expose include directory as interface --- grid_map_loader/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)