Skip to content

Commit

Permalink
Move find GLEW before VTK.
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Sep 16, 2024
1 parent 3a51480 commit 5ae66ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ if(WITH_CUDA)
include("${PCL_SOURCE_DIR}/cmake/pcl_find_cuda.cmake")
endif()

# find GLEW before VTK as it uses custom findGLEW that doesn't work with cmakes findGLEW.
option(WITH_GLEW "Support for GLEW" TRUE)
if(WITH_GLEW)
find_package(GLEW QUIET)
endif()


# Reset VTK_FOUND to off
set(VTK_FOUND OFF)
Expand Down Expand Up @@ -395,12 +401,6 @@ if(WITH_OPENGL)
include("${PCL_SOURCE_DIR}/cmake/pcl_find_gl.cmake")
endif()

# GLEW
option(WITH_GLEW "Support for GLEW" TRUE)
if(WITH_GLEW)
find_package(GLEW QUIET)
endif()

# Boost (required)
include("${PCL_SOURCE_DIR}/cmake/pcl_find_boost.cmake")

Expand Down

0 comments on commit 5ae66ee

Please sign in to comment.