Skip to content

Commit 6ce64e1

Browse files
committed
Remove zlib from surface on nurbs.
Using system installed zlib.
1 parent 4db3dc4 commit 6ce64e1

28 files changed

+4
-10004
lines changed

CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -449,17 +449,6 @@ endif()
449449
# Boost (required)
450450
include("${PCL_SOURCE_DIR}/cmake/pcl_find_boost.cmake")
451451

452-
# System zlib (for nurbs on surface)
453-
option(WITH_SYSTEM_ZLIB "Use system zlib" TRUE)
454-
if(WITH_SYSTEM_ZLIB)
455-
find_package(ZLIB)
456-
if(ZLIB_FOUND)
457-
set(HAVE_ZLIB ON)
458-
endif()
459-
else()
460-
message(WARNING "CMake will use a ZLIB version bundled with the PCL source code. However, that is an older version which may pose a risk and may be removed in a future PCL release. It is recommended to install an up-to-date version of ZLIB on your system and set WITH_SYSTEM_ZLIB=TRUE.")
461-
endif()
462-
463452
option(WITH_SYSTEM_CJSON "Use system cJSON" TRUE)
464453
if(WITH_SYSTEM_CJSON)
465454
find_package(cJSON)

pcl_config.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@
6363

6464
#cmakedefine HAVE_PNG
6565

66-
#cmakedefine HAVE_ZLIB
67-
6866
#cmakedefine HAVE_CJSON
6967

7068
#cmakedefine PCL_PREFER_BOOST_FILESYSTEM

surface/CMakeLists.txt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,9 @@ if(BUILD_surface_on_nurbs)
6767
include(src/3rdparty/opennurbs/openNURBS.cmake)
6868
include(src/on_nurbs/on_nurbs.cmake)
6969

70-
if(WITH_SYSTEM_ZLIB)
71-
find_package(ZLIB REQUIRED)
72-
list(APPEND ON_NURBS_LIBRARIES ${ZLIB_LIBRARIES})
73-
list(APPEND SUBSYS_EXT_DEPS zlib)
74-
else()
75-
include(src/3rdparty/opennurbs/zlib.cmake)
76-
list(APPEND OPENNURBS_INCLUDES ${ZLIB_INCLUDES})
77-
list(APPEND OPENNURBS_SOURCES ${ZLIB_SOURCES})
78-
endif()
70+
find_package(ZLIB REQUIRED)
71+
list(APPEND ON_NURBS_LIBRARIES ${ZLIB_LIBRARIES})
72+
list(APPEND SUBSYS_EXT_DEPS zlib)
7973
endif()
8074

8175
set(POISSON_INCLUDES

surface/include/pcl/surface/3rdparty/opennurbs/crc32.h

Lines changed: 0 additions & 441 deletions
This file was deleted.

surface/include/pcl/surface/3rdparty/opennurbs/deflate.h

Lines changed: 0 additions & 328 deletions
This file was deleted.

0 commit comments

Comments
 (0)