From e7154678ca66c07c334c1233cbf8df6cb174a031 Mon Sep 17 00:00:00 2001 From: Oleksandr <115580134+oleks-rip@users.noreply.github.com> Date: Tue, 9 Jan 2024 18:02:48 -0500 Subject: [PATCH] Add default package, for existing env --- Builds/CMake/packaging/package.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Builds/CMake/packaging/package.cmake b/Builds/CMake/packaging/package.cmake index 09070b2..6b62068 100644 --- a/Builds/CMake/packaging/package.cmake +++ b/Builds/CMake/packaging/package.cmake @@ -9,12 +9,16 @@ set(CPACK_PACKAGE_VENDOR "Ripple") set(CPACK_PACKAGE_CONTACT "Ripple Labs Inc. ") 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.")