Skip to content

Commit

Permalink
Default to building WITH_EPT, and show friendly error if WITH_EPT is …
Browse files Browse the repository at this point in the history
…true but zstd not found
  • Loading branch information
nyalldawson committed Nov 12, 2020
1 parent 3679e9d commit 18976fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -242,7 +242,7 @@ if(WITH_CORE)
set(HAVE_PDAL TRUE)
endif()

set (WITH_EPT FALSE CACHE BOOL "Determines whether Entwine Point Cloud (EPT) support should be built")
set (WITH_EPT TRUE CACHE BOOL "Determines whether Entwine Point Cloud (EPT) support should be built")
if(WITH_EPT)
set(HAVE_EPT TRUE)
endif()
Expand Down Expand Up @@ -390,6 +390,9 @@ if(WITH_CORE)

if (WITH_EPT) # EPT provider
find_package(ZSTD) # for decompression of point clouds
if (NOT ZSTD_FOUND)
message(FATAL_ERROR "ZSTD not found - EPT provider cannot be built")
endif()
find_package(LazPerf) # for decompression of point clouds
if (NOT LazPerf_FOUND)
message(STATUS "Using embedded laz-perf")
Expand Down
2 changes: 0 additions & 2 deletions cmake/FindZSTD.cmake
Expand Up @@ -29,6 +29,4 @@ MARK_AS_ADVANCED(ZSTD_LIBRARY ZSTD_INCLUDE_DIR)

IF (ZSTD_FOUND)
MESSAGE(STATUS "Found ZSTD: ${ZSTD_LIBRARY}")
ELSE (ZSTD_FOUND)
MESSAGE(FATAL_ERROR "Could not find ZSTD")
ENDIF (ZSTD_FOUND)

0 comments on commit 18976fb

Please sign in to comment.