forked from github/server
do not run tolua inside MSVC
The cmake rules for this do not work.
This commit is contained in:
parent
e9bc92608c
commit
e8b28725e1
|
@ -43,7 +43,6 @@ MACRO(ADD_LUA_MODULE MODULE_NAME FILES)
|
||||||
)
|
)
|
||||||
ENDMACRO(ADD_LUA_MODULE)
|
ENDMACRO(ADD_LUA_MODULE)
|
||||||
|
|
||||||
IF(TOLUA_FOUND)
|
|
||||||
MACRO(TOLUA_BINDING PKGFILE FILES)
|
MACRO(TOLUA_BINDING PKGFILE FILES)
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${PKGFILE}.c
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${PKGFILE}.c
|
||||||
|
@ -54,10 +53,11 @@ MACRO(TOLUA_BINDING PKGFILE FILES)
|
||||||
)
|
)
|
||||||
ENDMACRO(TOLUA_BINDING)
|
ENDMACRO(TOLUA_BINDING)
|
||||||
|
|
||||||
|
IF(NOT MSVC)
|
||||||
TOLUA_BINDING(process.pkg bind_process.h)
|
TOLUA_BINDING(process.pkg bind_process.h)
|
||||||
TOLUA_BINDING(eressea.pkg bind_eressea.h)
|
TOLUA_BINDING(eressea.pkg bind_eressea.h)
|
||||||
TOLUA_BINDING(settings.pkg bind_settings.h)
|
TOLUA_BINDING(settings.pkg bind_settings.h)
|
||||||
ENDIF(TOLUA_FOUND)
|
ENDIF()
|
||||||
|
|
||||||
set(TESTS
|
set(TESTS
|
||||||
laws_test.c
|
laws_test.c
|
||||||
|
|
Loading…
Reference in New Issue