summaryrefslogtreecommitdiff
path: root/cmake/debian/debian.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/debian/debian.cmake')
-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)