mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2024-11-13 07:57:45 +00:00
fixed luaopen_luasql_sqlite3 undefined error
This commit is contained in:
parent
a8f2ed0e73
commit
62cd6af6ed
1 changed files with 12 additions and 8 deletions
|
@ -722,7 +722,6 @@ endif(BUNDLED_JANSSON)
|
||||||
#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
||||||
|
|
||||||
if(FEATURE_LUASQL)
|
if(FEATURE_LUASQL)
|
||||||
|
|
||||||
if(NOT BUNDLED_LUA OR NOT FEATURE_DBMS)
|
if(NOT BUNDLED_LUA OR NOT FEATURE_DBMS)
|
||||||
message(STATUS "FEATURE_LUASQL needs BUNDLED_LUA and FEATURE_DBMS set!")
|
message(STATUS "FEATURE_LUASQL needs BUNDLED_LUA and FEATURE_DBMS set!")
|
||||||
endif(NOT BUNDLED_LUA OR NOT FEATURE_DBMS)
|
endif(NOT BUNDLED_LUA OR NOT FEATURE_DBMS)
|
||||||
|
@ -742,7 +741,12 @@ if(FEATURE_LUASQL)
|
||||||
include_directories(${LUA_BUNDLED_INCLUDE_DIR})
|
include_directories(${LUA_BUNDLED_INCLUDE_DIR})
|
||||||
|
|
||||||
add_library(luasql_library_module MODULE ${LUASQL_PUBLIC_HEADERS} ${LUASQL_FILES} ${LUASQL_BACKEND_FILES})
|
add_library(luasql_library_module MODULE ${LUASQL_PUBLIC_HEADERS} ${LUASQL_FILES} ${LUASQL_BACKEND_FILES})
|
||||||
set_target_properties(luasql_library_module PROPERTIES PREFIX "" OUTPUT_NAME "sqlite3")
|
set_target_properties(luasql_library_module PROPERTIES
|
||||||
|
C_VISIBILITY_PRESET default
|
||||||
|
VISIBILITY_INLINES_HIDDEN 0
|
||||||
|
PREFIX ""
|
||||||
|
OUTPUT_NAME "sqlite3"
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(luasql_library_module ${LUA_BUNDLED_LIBRARIES})
|
target_link_libraries(luasql_library_module ${LUA_BUNDLED_LIBRARIES})
|
||||||
target_link_libraries(luasql_library_module ${SQLITE3_BUNDLED_LIBRARIES})
|
target_link_libraries(luasql_library_module ${SQLITE3_BUNDLED_LIBRARIES})
|
||||||
|
|
Loading…
Reference in a new issue