Skip to content

Commit 4a6fbd8

Browse files
authored
Merge pull request #6435 from daeho-ro/master
Add x11 on linux when vtk 9.6+
2 parents 767d24b + 490996e commit 4a6fbd8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

visualization/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ endif()
140140

141141
target_link_libraries("${LIB_NAME}" pcl_common pcl_io pcl_kdtree pcl_geometry pcl_search ${OPENGL_LIBRARIES})
142142

143+
if(${VTK_VERSION} VERSION_GREATER_EQUAL 9.6 AND UNIX AND NOT ANDROID AND NOT APPLE AND NOT APPLE_IOS)
144+
find_package(X11 REQUIRED)
145+
target_link_libraries("${LIB_NAME}" ${X11_LIBRARIES})
146+
endif()
147+
143148
if(${VTK_VERSION} VERSION_GREATER_EQUAL 9.0)
144149
#Some libs are referenced through depending on IO
145150
target_link_libraries("${LIB_NAME}"

0 commit comments

Comments
 (0)