Skip to content

Commit

Permalink
Add default package, for existing env
Browse files Browse the repository at this point in the history
  • Loading branch information
oleks-rip committed Jan 11, 2024
1 parent a38db7f commit e715467
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Builds/CMake/packaging/package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ set(CPACK_PACKAGE_VENDOR "Ripple")
set(CPACK_PACKAGE_CONTACT "Ripple Labs Inc. <[email protected]>")
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_SOURCE_DIR}/packages)

if(NOT PKG)
set(PKG deb)
endif()

if(${PKG} STREQUAL deb)
include(packaging/deb)
elseif(${PKG} STREQUAL rpm)
include(packaging/rpm)
else()
message(ERROR "No package type provided!")
message(FATAL_ERROR "Invalid package type provided!")
endif()
message("Building ${PKG} package.")

Expand Down

0 comments on commit e715467

Please sign in to comment.