mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 13:49:23 +08:00
581099d541
* [libmariadb] update to v3.3.1 * update version * revert patch formating * update version
69 lines
2.6 KiB
Diff
69 lines
2.6 KiB
Diff
diff --git a/include/mariadb_version.h.in b/include/mariadb_version.h.in
|
|
index a82dbb7..e9005fa 100644
|
|
--- a/include/mariadb_version.h.in
|
|
+++ b/include/mariadb_version.h.in
|
|
@@ -30,7 +30,7 @@
|
|
#define MARIADB_PACKAGE_VERSION_ID @MARIADB_PACKAGE_VERSION_ID@
|
|
#define MARIADB_SYSTEM_TYPE "@CMAKE_SYSTEM_NAME@"
|
|
#define MARIADB_MACHINE_TYPE "@CMAKE_SYSTEM_PROCESSOR@"
|
|
-#define MARIADB_PLUGINDIR "@CMAKE_INSTALL_PREFIX@/@INSTALL_PLUGINDIR@"
|
|
+#define MARIADB_PLUGINDIR "../@INSTALL_PLUGINDIR@"
|
|
|
|
/* mysqld compile time options */
|
|
#ifndef MYSQL_CHARSET
|
|
diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
|
|
index 7faf827..d4e07f7 100644
|
|
--- a/libmariadb/CMakeLists.txt
|
|
+++ b/libmariadb/CMakeLists.txt
|
|
@@ -417,10 +417,10 @@ ADD_LIBRARY(mariadbclient STATIC ${MARIADB_OBJECTS} ${EMPTY_FILE})
|
|
TARGET_LINK_LIBRARIES(mariadbclient ${SYSTEM_LIBS})
|
|
|
|
IF(UNIX)
|
|
- ADD_LIBRARY(libmariadb SHARED ${libmariadb_RC} ${MARIADB_OBJECTS} ${EMPTY_FILE})
|
|
+ ADD_LIBRARY(libmariadb ${libmariadb_RC} ${MARIADB_OBJECTS} ${EMPTY_FILE})
|
|
SET_TARGET_PROPERTIES(libmariadb PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}")
|
|
ELSE()
|
|
- ADD_LIBRARY(libmariadb SHARED ${libmariadb_RC} ${MARIADB_OBJECTS} mariadbclient.def)
|
|
+ ADD_LIBRARY(libmariadb ${libmariadb_RC} ${MARIADB_OBJECTS} mariadbclient.def)
|
|
SET_TARGET_PROPERTIES(libmariadb PROPERTIES LINKER_LANGUAGE C)
|
|
ENDIF()
|
|
|
|
@@ -472,11 +472,13 @@ ENDIF()
|
|
|
|
INSTALL(TARGETS mariadbclient
|
|
COMPONENT Development
|
|
- DESTINATION ${INSTALL_LIBDIR})
|
|
+ LIBRARY DESTINATION lib)
|
|
IF(WIN32)
|
|
INSTALL(TARGETS libmariadb
|
|
COMPONENT SharedLibraries
|
|
- DESTINATION ${INSTALL_LIBDIR})
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib)
|
|
ELSE()
|
|
# in cmake 3.12+ we can use
|
|
#INSTALL(TARGETS libmariadb LIBRARY DESTINATION ${INSTALL_LIBDIR}
|
|
@@ -488,7 +490,7 @@ INSTALL(TARGETS libmariadb LIBRARY DESTINATION ${INSTALL_LIBDIR}
|
|
COMPONENT Development NAMELINK_ONLY)
|
|
ENDIF()
|
|
|
|
-IF(MSVC)
|
|
+IF(0)
|
|
# On Windows, install PDB
|
|
INSTALL(FILES $<TARGET_PDB_FILE:libmariadb> DESTINATION "${INSTALL_LIBDIR}"
|
|
CONFIGURATIONS Debug RelWithDebInfo
|
|
diff --git a/mariadb_config/mariadb_config.c.in b/mariadb_config/mariadb_config.c.in
|
|
index 36c0117..4184e4b 100644
|
|
--- a/mariadb_config/mariadb_config.c.in
|
|
+++ b/mariadb_config/mariadb_config.c.in
|
|
@@ -225,7 +225,7 @@ end:
|
|
}
|
|
if (!p || !p[0])
|
|
{
|
|
- strncpy(installation_dir, "@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@", PATH_MAX - 1);
|
|
+ strncpy(installation_dir, "../@CMAKE_INSTALL_PREFIX@", PATH_MAX - 1);
|
|
return;
|
|
}
|
|
}
|