mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 03:49:07 +08:00
3492464c1c
* Update to 3.1.15 * Modernize portfile * Keep plugins * Always use vcpkg zlib instead vendored copy * Use zlib and openssl modules in pc file * Always install pc file, drop non-relocatable mariadb_config * UWP is not supported * Use schannel SSL backend on windows * Fix exported includedir and libdir * Fixup windows pc file * Disable extra static lib * Disable plugins with extra dependencies * [libmariadb] Namespace targets with unofficial:: * Update versions * Enable CI for x86-windows: no conflict with mysql * Re-enable lib mariadbclient via feature * Use openssl targets to handle multi-config * Update versions * CR request * Update versions
20 lines
670 B
Diff
20 lines
670 B
Diff
diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
|
|
index 39fa709..a726a6d 100644
|
|
--- a/libmariadb/CMakeLists.txt
|
|
+++ b/libmariadb/CMakeLists.txt
|
|
@@ -455,10 +455,14 @@ IF(NOT WIN32)
|
|
SET_TARGET_PROPERTIES(mariadbclient PROPERTIES OUTPUT_NAME "${LIBMARIADB_STATIC_NAME}")
|
|
ENDIF()
|
|
|
|
+if(VCPKG_MARIADBCLIENT)
|
|
INSTALL(TARGETS mariadbclient
|
|
COMPONENT Development
|
|
EXPORT unofficial-libmariadb-targets
|
|
LIBRARY DESTINATION lib)
|
|
+else()
|
|
+ set_target_properties(mariadbclient PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
+endif()
|
|
INSTALL(TARGETS libmariadb
|
|
COMPONENT SharedLibraries
|
|
EXPORT unofficial-libmariadb-targets
|