mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-20 09:07:14 +02:00
Make MySQL optional.
Only windows for now.
This commit is contained in:
@ -77,7 +77,9 @@ target_link_libraries(SqModule VCMP Squirrel Sqrat SqSDK)
|
||||
# Link to third-party libraries
|
||||
target_link_libraries(SqModule SimpleINI HashLib B64Lib AES256Lib WhirlpoolLib TinyDir PUGIXML SQLite MaxmindDB)
|
||||
# Link to mysql client library
|
||||
target_link_libraries(SqModule mariadbclient)
|
||||
if(WIN32 AND ENABLE_MYSQL)
|
||||
target_link_libraries(SqModule mariadbclient)
|
||||
endif()
|
||||
#
|
||||
if(FORCE_32BIT_BIN)
|
||||
set_target_properties(SqModule PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
|
||||
|
4
module/Vendor/CMakeLists.txt
vendored
4
module/Vendor/CMakeLists.txt
vendored
@ -8,6 +8,6 @@ add_subdirectory(SQLite)
|
||||
add_subdirectory(TinyDir)
|
||||
add_subdirectory(Whirlpool)
|
||||
# Build our own mysql client on windows
|
||||
if(WIN32)
|
||||
if(WIN32 AND ENABLE_MYSQL)
|
||||
add_subdirectory(MDBC)
|
||||
endif(WIN32)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user