summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 00:54:55 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 00:59:07 +0100
commit7dd1561a883a28ffa275e1a097bd82853b4cc6f8 (patch)
treed73e7b0709f3ed12c98c26cc7399aee0b06c4ebf /src
parentRevert "Removed unused ToLua files." to allow the new cmake system to build on tolua++ on linux (diff)
downloadcuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.tar
cuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.tar.gz
cuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.tar.bz2
cuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.tar.lz
cuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.tar.xz
cuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.tar.zst
cuberite-7dd1561a883a28ffa275e1a097bd82853b4cc6f8.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/CMakeLists.txt10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt
index e503d9a84..49a6aa4e8 100644
--- a/src/Bindings/CMakeLists.txt
+++ b/src/Bindings/CMakeLists.txt
@@ -4,19 +4,13 @@ project (MCServer)
include_directories ("${PROJECT_SOURCE_DIR}/../")
-if (WIN32)
-add_executable(tolua++.exe IMPORTED)
-else ()
-message(WARNING "cannot rebuild bindings when not on windows")
-endif()
-
ADD_CUSTOM_COMMAND(
#add any new generated bindings here
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Bindings.cpp ${CMAKE_CURRENT_BINARY_DIR}/Bindings.h
#command execuded to regerate bindings
- COMMAND "./tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
+ COMMAND tolua -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
#add any new generation dependencies here
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua++.exe
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua
)
add_library(Bindings PluginManager LuaState WebPlugin Bindings)