Add Lua dependings only if LUA is enabled

Avoid build fail if found Lua but it is disabled.

Change-Id: If1cf0d650454d2844a1430135de1385c984e5ba4
Reviewed-on: https://code.wireshark.org/review/13394
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michal Labedzki 2015-12-30 19:26:59 +01:00 committed by Michael Mann
parent ff033c6a2f
commit 1cc4ac4619
1 changed files with 1 additions and 1 deletions

View File

@ -1646,7 +1646,7 @@ list(APPEND copy_data_files_depends "${DATAFILE_DIR}/help/faq.txt")
# Install LUA files in staging directory such that LUA can used when Wireshark
# is ran from the build directory. For install targets, see
# epan/wslua/CMakeLists.txt
if(LUA_FOUND)
if(LUA_FOUND AND ENABLE_LUA)
set(_lua_files
"${CMAKE_BINARY_DIR}/epan/wslua/init.lua"
"${CMAKE_SOURCE_DIR}/epan/wslua/console.lua"