diff options
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}) |