Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown CMake command "lua_add_executable" #147

Closed
joerg-krause opened this issue Apr 14, 2016 · 0 comments
Closed

Unknown CMake command "lua_add_executable" #147

joerg-krause opened this issue Apr 14, 2016 · 0 comments

Comments

@joerg-krause
Copy link
Contributor

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!
joerg-krause added a commit to joerg-krause/luvi that referenced this issue Apr 14, 2016
Commit 9947423 replaced the command
unconditionally luajit_add_executable by lua_add_executable which
breaks building luvi with shared libs.

Closes: luvit#147
joerg-krause added a commit to joerg-krause/luvi that referenced this issue Apr 14, 2016
Commit 9947423 replaced the command
unconditionally luajit_add_executable by lua_add_executable which
breaks building luvi with shared libs.

Closes: luvit#147
joerg-krause added a commit to joerg-krause/luvi that referenced this issue Apr 14, 2016
Commit 9947423 replaced the macro
`luajit_add_executable` by `lua_add_executable` which breaks building
luvi with shared libs.

Replace the macro name in LuaJITAddExecutable.cmake too.

Closes: luvit#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant