luvit / luvi

A project in-between luv and luvit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown CMake command "lua_add_executable"

joerg-krause opened this issue · comments

Building luvi 2.7.0 with WithSharedLibluv=ON fails:

(mkdir -p /home/joerg/Development/git/buildroot/output/build/luvi-v2.7.0/ && cd /home/joerg/Development/git/buildroot/output/build/luvi-v2.7.0/ && rm -f CMakeCache.txt && PATH="/home/joerg/Development/git/buildroot/output/host/bin:/home/joerg/Development/git/buildroot/output/host/sbin:/home/joerg/Development/git/buildroot/output/host/usr/bin:/home/joerg/Development/git/buildroot/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"  /home/joerg/Development/git/buildroot/output/host/usr/bin/cmake /home/joerg/Development/git/buildroot/output/build/luvi-v2.7.0/ -DCMAKE_TOOLCHAIN_FILE="/home/joerg/Development/git/buildroot/output/host/usr/share/buildroot/toolchainfile.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON  -DBUILD_SHARED_LIBS=OFF -DWithSharedLibluv=ON -DTARGET_ARCH=arm -DLUA_PATH=/home/joerg/Development/git/buildroot/output/host/usr/share/luajit-2.0.4/?.lua -DWithPCRE=OFF -DWithSharedPCRE=OFF -DWithOpenSSL=OFF -DWithOpenSSLASM=OFF -DWithSharedOpenSSL=OFF -DWithZLIB=OFF -DWithSharedZLIB=OFF )
-- The C compiler identification is GNU 5.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/joerg/Development/git/buildroot/output/host/usr/bin/arm-linux-musleabi-gcc
-- Check for working C compiler: /home/joerg/Development/git/buildroot/output/host/usr/bin/arm-linux-musleabi-gcc
-- Check for working C compiler: /home/joerg/Development/git/buildroot/output/host/usr/bin/arm-linux-musleabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found luvi version: v2.7.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found LIBLUV: /home/joerg/Development/git/buildroot/output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/lib/libluv.so  
-- Found LUAJIT: /home/joerg/Development/git/buildroot/output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/lib/libluajit-5.1.so  
-- Found LIBUV: /home/joerg/Development/git/buildroot/output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/lib/libuv.so  
CMake Error at CMakeLists.txt:140 (lua_add_executable):
  Unknown CMake command "lua_add_executable".


-- Configuring incomplete, errors occurred!