MSVC tweaks

This commit is contained in:
Miku AuahDark 2020-05-07 20:44:21 +08:00
parent 9ba37e4e4a
commit 640a50532b
No known key found for this signature in database
GPG key ID: EFB853D1AB989C18
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,10 @@ TARGET_LINK_LIBRARIES(
${LUA_LIBRARIES} ${LUA_LIBRARIES}
) )
IF(MSVC)
TARGET_COMPILE_DEFINITIONS(${LIB_NAME} PRIVATE LUA_BUILD_AS_DLL)
endif(MSVC)
SET_TARGET_PROPERTIES("${LIB_NAME}" PROPERTIES PREFIX "") SET_TARGET_PROPERTIES("${LIB_NAME}" PROPERTIES PREFIX "")
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

View file

@ -8,6 +8,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define LUA_LIB
#include <lua.h> #include <lua.h>
#include <lauxlib.h> #include <lauxlib.h>