aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-19 13:17:59 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-19 13:17:59 -0700
commit4da9d6cbb62e43170e0f21d26387e1018b1e74e0 (patch)
treefe7c5f52f84556b965840455bd1b102b1caeeb13
parent49a719b78a4c7feccc2aca970ec7fb242e1c121b (diff)
downloadvcpkg-4da9d6cbb62e43170e0f21d26387e1018b1e74e0.tar.gz
vcpkg-4da9d6cbb62e43170e0f21d26387e1018b1e74e0.zip
[libmysql] Use relative include path. Fixes #3071
-rw-r--r--ports/libmysql/CONTROL2
-rw-r--r--ports/libmysql/portfile.cmake4
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/libmysql/CONTROL b/ports/libmysql/CONTROL
index 4af150af9..6f856c607 100644
--- a/ports/libmysql/CONTROL
+++ b/ports/libmysql/CONTROL
@@ -1,4 +1,4 @@
Source: libmysql
-Version: 8.0.4-1
+Version: 8.0.4-2
Build-Depends: boost-algorithm, boost-geometry, boost-optional, boost-functional, boost-graph, openssl, icu, libevent, liblzma, lz4, zlib
Description: A MySQL client library for C development.
diff --git a/ports/libmysql/portfile.cmake b/ports/libmysql/portfile.cmake
index c9859c47b..0e7b69edf 100644
--- a/ports/libmysql/portfile.cmake
+++ b/ports/libmysql/portfile.cmake
@@ -109,6 +109,10 @@ else()
file (RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libmysql.pdb ${CURRENT_PACKAGES_DIR}/debug/bin/libmysql.pdb)
endif()
+file(READ ${CURRENT_PACKAGES_DIR}/include/mysql/mysql_com.h _contents)
+string(REPLACE "#include <mysql/udf_registration_types.h>" "#include \"mysql/udf_registration_types.h\"" _contents "${_contents}")
+file(WRITE ${CURRENT_PACKAGES_DIR}/include/mysql/mysql_com.h "${_contents}")
+
# copy license
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libmysql)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libmysql/LICENSE ${CURRENT_PACKAGES_DIR}/share/libmysql/copyright) \ No newline at end of file