diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-06-10 22:39:55 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 09:39:55 +0800 |
commit | c92ecda53337490633c95e6ae00e322dc9ad1fb8 (patch) | |
tree | 47185f92938547b2c70fcf00b02c9acef772ac9c /CMakeLists.txt | |
parent | d20576d5cef3d7aa3b6d62db7aee9d9d5f03cc70 (diff) | |
download | lua-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.txt | 7 |
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") |
69 | endif() | 69 | endif() |
70 | 70 | ||
71 | if(MSVC) | ||
72 | add_definitions(-D_CRT_SECURE_NO_WARNINGS) | ||
73 | add_definitions(-Dinline=__inline) | ||
74 | add_definitions(-Dsnprintf=_snprintf) | ||
75 | add_definitions(-Dstrncasecmp=_strnicmp) | ||
76 | endif() | ||
77 | |||
71 | add_library(cjson MODULE lua_cjson.c strbuf.c ${FPCONV_SOURCES}) | 78 | add_library(cjson MODULE lua_cjson.c strbuf.c ${FPCONV_SOURCES}) |
72 | set_target_properties(cjson PROPERTIES PREFIX "") | 79 | set_target_properties(cjson PROPERTIES PREFIX "") |
73 | target_link_libraries(cjson ${_MODULE_LINK}) | 80 | target_link_libraries(cjson ${_MODULE_LINK}) |