aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-06-10 22:39:55 -0300
committerGitHub <noreply@github.com>2024-06-11 09:39:55 +0800
commitc92ecda53337490633c95e6ae00e322dc9ad1fb8 (patch)
tree47185f92938547b2c70fcf00b02c9acef772ac9c /CMakeLists.txt
parentd20576d5cef3d7aa3b6d62db7aee9d9d5f03cc70 (diff)
downloadlua-cjson-c92ecda53337490633c95e6ae00e322dc9ad1fb8.tar.gz
lua-cjson-c92ecda53337490633c95e6ae00e322dc9ad1fb8.tar.bz2
lua-cjson-c92ecda53337490633c95e6ae00e322dc9ad1fb8.zip
feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed.
Co-Authored-By: Hisham Muhammad <hisham@gobolinux.org> Co-authored-by: Mark Pulford <mark@kyne.com.au> Co-authored-by: ichenq <ichenq@gmail.com> Co-authored-by: Cloud Wu <cloudwu@gmail.com> Co-authored-by: caijietao <t0350.prog@gmail.com> Co-authored-by: actboy168 <actboy168@gmail.com> Co-authored-by: wudeng <wudeng256@gmail.com> Co-authored-by: caiyiheng <rangercyh@qq.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7eaf89..8ac6d38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,6 +68,13 @@ else()
68 set(_lua_module_dir "${_lua_lib_dir}/lua/5.1") 68 set(_lua_module_dir "${_lua_lib_dir}/lua/5.1")
69endif() 69endif()
70 70
71if(MSVC)
72 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
73 add_definitions(-Dinline=__inline)
74 add_definitions(-Dsnprintf=_snprintf)
75 add_definitions(-Dstrncasecmp=_strnicmp)
76endif()
77
71add_library(cjson MODULE lua_cjson.c strbuf.c ${FPCONV_SOURCES}) 78add_library(cjson MODULE lua_cjson.c strbuf.c ${FPCONV_SOURCES})
72set_target_properties(cjson PROPERTIES PREFIX "") 79set_target_properties(cjson PROPERTIES PREFIX "")
73target_link_libraries(cjson ${_MODULE_LINK}) 80target_link_libraries(cjson ${_MODULE_LINK})