Skip to content

Commit

Permalink
Fix unknown CMake command lua_add_executable
Browse files Browse the repository at this point in the history
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: #147
  • Loading branch information
joerg-krause committed Apr 14, 2016
1 parent 70dd27e commit 35c3961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/LuaJITAddExecutable.cmake
Expand Up @@ -52,7 +52,7 @@ MACRO(LUAJIT_add_custom_commands luajit_target)
ENDFOREACH(file)
ENDMACRO()

MACRO(LUAJIT_ADD_EXECUTABLE luajit_target)
MACRO(LUA_ADD_EXECUTABLE luajit_target)
LUAJIT_add_custom_commands(${luajit_target} ${ARGN})
add_executable(${luajit_target} ${target_srcs})
ENDMACRO(LUAJIT_ADD_EXECUTABLE luajit_target)
ENDMACRO(LUA_ADD_EXECUTABLE luajit_target)

0 comments on commit 35c3961

Please sign in to comment.