diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-21 18:08:19 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-21 18:08:19 +0200 |
commit | 8c337984bde9a5e005212d34c4916752c724dc61 (patch) | |
tree | 90b9ac9cc64dbc9e96509fe43564205abacd43a0 /conf.d/cmake | |
parent | ddb43e0c12722db65ebf6362e79ec89130769662 (diff) |
Documentation and LUA for Ubuntu
Diffstat (limited to 'conf.d/cmake')
-rw-r--r-- | conf.d/cmake/config.cmake | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index b5e3a4c..5d35862 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -47,6 +47,14 @@ set (gcc_minimal_version 4.9) #set(CMAKE_C_COMPILER "gcc") #set(CMAKE_CXX_COMPILER "g++") +# When Present LUA is used by the controller +# --------------------------------------------------------------- +set(CONTROL_SUPPORT_LUA 1 CACHE BOOL "Active or not LUA Support") +set(LUA_PKG lua>=5.3) +if(OSRELEASE MATCHES "debian") +set(LUA_PKG lua-5.3) +endif() + # PKG_CONFIG required packages # ----------------------------- set (PKG_REQUIRED_LIST @@ -56,7 +64,7 @@ set (PKG_REQUIRED_LIST afb-daemon json-c libafbwsc - lua>=5.3 + ${LUA_PKG} ) # Controller project needed variables. @@ -64,7 +72,6 @@ set (PKG_REQUIRED_LIST # in the CMakeLists.txt of that target to correctly # expand variables. # ---------------------------------------------------- -set(CONTROL_SUPPORT_LUA 1 CACHE BOOL "Active or not LUA Support") set (CTL_PLUGIN_PRE "ctl-" CACHE STRING "Prefix for Controller share plugin") set (CTL_PLUGIN_EXT ".ctlso" CACHE STRING "Postfix for Controller share plugin") |