made the sqlite interfaces public again, needs to be fixed in a better way

This commit is contained in:
Jacker 2024-01-31 23:42:47 +02:00
parent 9e5a11eace
commit 2a7a2eb71a
No known key found for this signature in database
GPG key ID: CC846B58E6BDCFF2

View file

@ -110,7 +110,7 @@ endif()
if (SQLITE_BUILD_STATIC)
# build static library
add_library(${SQLITE_STATIC_NAME} STATIC ${SRC_LIB_FILE})
target_link_libraries(${SQLITE_STATIC_NAME} PRIVATE sqlite_int)
target_link_libraries(${SQLITE_STATIC_NAME} PUBLIC sqlite_int)
endif()
if (SQLITE_BUILD_SHARED)
@ -120,7 +120,7 @@ if (SQLITE_BUILD_SHARED)
#then we do dll library, so need to export api
set_target_properties(${SQLITE_DYN_NAME} PROPERTIES DEFINE_SYMBOL "SQLITE_API=__declspec(dllexport)")
endif()
target_link_libraries(${SQLITE_DYN_NAME} PRIVATE sqlite_int)
target_link_libraries(${SQLITE_DYN_NAME} PUBLIC sqlite_int)
endif()
#install(TARGETS ${TO_INSTALL}