mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[libodb-mysql] adapter mysql 8.0 (#3723)
* Install sodium.h * [libodb-mysql] adapter mysql 8.0
This commit is contained in:
parent
fe23b30178
commit
f2aaef68ae
@ -1,4 +1,4 @@
|
||||
Source: libodb-mysql
|
||||
Version: 2.4.0-1
|
||||
Version: 2.4.0-2
|
||||
Description: MySQL support for the ODB ORM library
|
||||
Build-Depends: libodb, libmysql
|
13
ports/libodb-mysql/adapter_mysql_8.0.patch
Normal file
13
ports/libodb-mysql/adapter_mysql_8.0.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
|
||||
index 1254ccd..5396791 100644
|
||||
--- a/odb/mysql/mysql-types.hxx
|
||||
+++ b/odb/mysql/mysql-types.hxx
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <odb/mysql/details/config.hxx>
|
||||
|
||||
-typedef char my_bool;
|
||||
+typedef bool my_bool;
|
||||
typedef struct st_mysql_bind MYSQL_BIND;
|
||||
|
||||
#ifdef LIBODB_MYSQL_INCLUDE_SHORT
|
@ -19,6 +19,12 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/adapter_mysql_8.0.patch
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
set(MYSQL_INCLUDE_DIR "${CURRENT_INSTALLED_DIR}/include/mysql")
|
||||
set(MYSQL_LIB "${CURRENT_INSTALLED_DIR}/lib/libmysql.lib")
|
||||
|
Loading…
x
Reference in New Issue
Block a user