vcpkg/ports/libmariadb/no-extra-static-lib.patch
JonLiu1993 581099d541
[libmariadb] update to v3.3.1 (#26268)
* [libmariadb] update to v3.3.1

* update version

* revert patch formating

* update version
2022-08-11 18:51:38 -07:00

21 lines
645 B
Diff

diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
index 4823858..018101f 100644
--- a/libmariadb/CMakeLists.txt
+++ b/libmariadb/CMakeLists.txt
@@ -471,10 +471,15 @@ 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()
+
IF(WIN32)
INSTALL(TARGETS libmariadb
COMPONENT SharedLibraries