Skip to content

Commit

Permalink
Add debug info for vtk
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Nov 14, 2023
1 parent 98a443b commit 44d0631
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/PCLTools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ macro(vp_find_pcl pcl_libraries pcl_deps_include_dirs pcl_deps_libraries)
# Get pcl link libraries like opengl
vp_list_unique(PCL_VTK_LIBRARIES)
if(NOT VTK_ENABLE_KITS)
message("--- DEBUG VTK: case 1: NOT VTK_ENABLE_KITS")
foreach(lib_ ${PCL_VTK_LIBRARIES})
get_target_property(imported_libs_ ${lib_} INTERFACE_LINK_LIBRARIES)
if(imported_libs_)
Expand All @@ -103,6 +104,7 @@ macro(vp_find_pcl pcl_libraries pcl_deps_include_dirs pcl_deps_libraries)
endif()

get_target_property(imported_incs_ ${lib_} INTERFACE_INCLUDE_DIRECTORIES)
message("--- DEBUG VTK: ${lib_} imported_incs_: ${imported_incs_}")
if(imported_incs_)
list(APPEND PCL_VTK_IMPORTED_INCS ${imported_incs_})
endif()
Expand Down Expand Up @@ -153,6 +155,7 @@ macro(vp_find_pcl pcl_libraries pcl_deps_include_dirs pcl_deps_libraries)
endwhile()
vp_list_unique(PCL_VTK_LIBS)
else()
message("--- DEBUG VTK: case 2: VTK_ENABLE_KITS")
foreach(lib_ ${PCL_VTK_LIBRARIES})
get_target_property(imported_libs_ ${lib_} INTERFACE_LINK_LIBRARIES)
if(imported_libs_)
Expand All @@ -165,6 +168,7 @@ macro(vp_find_pcl pcl_libraries pcl_deps_include_dirs pcl_deps_libraries)
endif()

get_target_property(imported_incs_ ${lib_} INTERFACE_INCLUDE_DIRECTORIES)
message("--- DEBUG VTK: ${lib_} imported_incs_: ${imported_incs_}")
if(imported_incs_)
list(APPEND PCL_VTK_IMPORTED_INCS ${imported_incs_})
endif()
Expand Down

0 comments on commit 44d0631

Please sign in to comment.