We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a38db7f commit e715467Copy full SHA for e715467
Builds/CMake/packaging/package.cmake
@@ -9,12 +9,16 @@ set(CPACK_PACKAGE_VENDOR "Ripple")
9
set(CPACK_PACKAGE_CONTACT "Ripple Labs Inc. <[email protected]>")
10
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_SOURCE_DIR}/packages)
11
12
+if(NOT PKG)
13
+ set(PKG deb)
14
+endif()
15
+
16
if(${PKG} STREQUAL deb)
17
include(packaging/deb)
18
elseif(${PKG} STREQUAL rpm)
19
include(packaging/rpm)
20
else()
- message(ERROR "No package type provided!")
21
+ message(FATAL_ERROR "Invalid package type provided!")
22
endif()
23
message("Building ${PKG} package.")
24
0 commit comments