1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 13:22:36 +01:00

Support setting ENABLE_LUA_SUPPORT

To allow users to disable Lua support, do not overwrite the
ENABLE_LUA_SUPPORT variable. Instead just set the default if it is not
set yet.
This commit is contained in:
Benjamin Drung 2017-08-24 16:39:15 +02:00
parent 8122dba8ea
commit a4d2d8170a

@ -229,7 +229,7 @@ endif()
# We do not enable it by default, it's testing feature # We do not enable it by default, it's testing feature
# If you want it please build with: # If you want it please build with:
# cmake -DENABLE_LUA_SUPPORT=ON .. # cmake -DENABLE_LUA_SUPPORT=ON ..
set(ENABLE_LUA_SUPPORT yes) set(ENABLE_LUA_SUPPORT yes CACHE BOOL "Enable Lua support")
if (ENABLE_LUA_SUPPORT) if (ENABLE_LUA_SUPPORT)
message(STATUS "We will enable LuaJIT support") message(STATUS "We will enable LuaJIT support")