Skip to content

Commit

Permalink
CMAKE: Add an option to explicitly use internal lazperf
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed May 6, 2022
1 parent 0d87102 commit 8992b86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -411,8 +411,11 @@ if(WITH_CORE)
message(STATUS "Qt WebKit support DISABLED.")
endif()

set (WITH_INTERNAL_LAZPERF FALSE CACHE BOOL "Determines whether LazPerf should be built from internal copy")
if (WITH_EPT OR WITH_COPC)
find_package(LazPerf) # for decompression of point clouds
if (NOT WITH_INTERNAL_LAZPERF)
find_package(LazPerf) # for decompression of point clouds
endif()
if (NOT LazPerf_FOUND)
message(STATUS "Using embedded laz-perf")
endif()
Expand Down

0 comments on commit 8992b86

Please sign in to comment.