Skip to content

Commit b322a59

Browse files
committed
Build static library and for Lua 5.4
1 parent 3404ba1 commit b322a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(NOT CMAKE_BUILD_TYPE)
1616
FORCE)
1717
endif()
1818

19-
find_package(Lua51 REQUIRED)
19+
find_package(Lua 5.4 REQUIRED)
2020
include_directories(${LUA_INCLUDE_DIR})
2121

2222
if(NOT USE_INTERNAL_FPCONV)
@@ -76,7 +76,7 @@ if(MSVC)
7676
add_definitions(-Dstrncasecmp=_strnicmp)
7777
endif()
7878

79-
add_library(cjson MODULE lua_cjson.c strbuf.c ${FPCONV_SOURCES})
79+
add_library(cjson STATIC lua_cjson.c strbuf.c ${FPCONV_SOURCES})
8080
set_target_properties(cjson PROPERTIES PREFIX "")
8181
target_link_libraries(cjson ${_MODULE_LINK})
8282
install(TARGETS cjson DESTINATION "${_lua_module_dir}")

0 commit comments

Comments
 (0)