Skip to content

Commit

Permalink
Move before VTK again.
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Aug 26, 2024
1 parent b6d91ad commit 050aadc
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 @@ -375,6 +375,12 @@ if(WITH_VTK)
endif()
endif()

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

# VTK can depend on Qt and search for its required version, so search after so we can overwrite Qt5_FOUND/Qt6_FOUND if the version we require is not found.
set(WITH_QT "AUTO" CACHE STRING "Build QT Front-End (AUTO|YES|QT6|QT5|NO)")
set_property(CACHE WITH_QT PROPERTY STRINGS "AUTO" "YES" "QT6" "QT5" "NO")
Expand All @@ -394,12 +400,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)
endif()

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

Expand Down

0 comments on commit 050aadc

Please sign in to comment.