CMAKE: Add an option to explicitly use internal lazperf

This commit is contained in:
Loïc Bartoletti 2022-04-15 08:46:24 +02:00
parent 0d871029be
commit 8992b860df

View File

@ -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()