summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@vyos.io>2022-10-11 11:11:35 +0000
committerDmitriy Eshenko <dmitriy.eshenko@vyos.io>2022-10-11 11:11:35 +0000
commit802b4960b77dd3999ce29429c13aa03a61646b41 (patch)
tree15973daf8b6bfd0d603498ac568d889ee66ec480
parent28fe4de9441aa9d0c42c010e8eef5b1a19122c9d (diff)
downloadaccel-ppp-802b4960b77dd3999ce29429c13aa03a61646b41.tar.gz
accel-ppp-802b4960b77dd3999ce29429c13aa03a61646b41.zip
Add liblua dependency for DEB packages
-rw-r--r--cmake/debian/debian.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake
index b12c7193..8db274a6 100644
--- a/cmake/debian/debian.cmake
+++ b/cmake/debian/debian.cmake
@@ -61,3 +61,11 @@ if (NOT BUILD_DRIVER_ONLY)
INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/accel-ppp.service DESTINATION /usr/lib/systemd/system)
endif (CPACK_TYPE STREQUAL Debian6)
endif ()
+
+IF (LUA)
+ IF (LUA STREQUAL "TRUE")
+ SET(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, liblua5.1-0")
+ ELSE ()
+ SET(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, liblua${LUA}-0")
+ ENDIF ()
+ENDIF (LUA)