Skip to content

Commit

Permalink
Set BUILD_DEBIAN_PACKAGE to ON for Debian packaging
Browse files Browse the repository at this point in the history
- Enabled `BUILD_DEBIAN_PACKAGE` to ensure Debian package creation if supported.
- Previously, TXZ (.tar.xz) packaging was disabled, which could break dependent pipelines.

Signed-off-by: Meet Gandhi <[email protected]>
  • Loading branch information
meetgandhi-dev committed Sep 28, 2024
1 parent 61a1699 commit 4192cdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ if (NOT DEVELOPER_BUILD)
endif()
endif()

option(BUILD_DEBIAN_PACKAGE "Build debian package" OFF)
option(BUILD_DEBIAN_PACKAGE "Build debian package" ON)
# will work with cmake 3.22 and newer
# https://cmake.org/cmake/help/latest/command/cmake_host_system_information.html
if (BUILD_DEBIAN_PACKAGE)
Expand Down
14 changes: 7 additions & 7 deletions cmake/Open3DPackaging.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# This is packaging for the Open3D library. See
# cpp/apps/Open3DViewer/Debian/CMakeLists.txt for packaging the Debian Open3D
# viewer
if (BUILD_DEBIAN_PACKAGE)
set(CPACK_GENERATOR DEB)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES)
else()
set(CPACK_GENERATOR TXZ)
endif()
set(CPACK_GENERATOR TXZ)
if(WIN32)
set(CPACK_GENERATOR ZIP)
endif()
Expand Down Expand Up @@ -39,4 +33,10 @@ set(CPACK_PACKAGE_FILE_NAME
"open3d-devel-${_sys}-${OPEN3D_VERSION_FULL}")
set(CPACK_THREADS 0) # Use all cores for compressing package

if (BUILD_DEBIAN_PACKAGE)
list(APPEND CPACK_GENERATOR DEB)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES)
endif()

include(CPack)

0 comments on commit 4192cdb

Please sign in to comment.