mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 12:29:07 +08:00
d7c3b9ec4a
* [poco] Fix dependency libmariadb * [poco] Remove link in codes
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
|
|
index 083a863..6c8d932 100644
|
|
--- a/libmariadb/CMakeLists.txt
|
|
+++ b/libmariadb/CMakeLists.txt
|
|
@@ -405,6 +405,7 @@ ELSE()
|
|
TARGET_LINK_LIBRARIES(libmariadb LINK_PRIVATE mariadbclient)
|
|
SET_TARGET_PROPERTIES(libmariadb PROPERTIES LINKER_LANGUAGE C)
|
|
ENDIF()
|
|
+TARGET_INCLUDE_DIRECTORIES(libmariadb PUBLIC $<INSTALL_INTERFACE:include/mysql>)
|
|
|
|
TARGET_LINK_LIBRARIES(libmariadb LINK_PRIVATE ${SYSTEM_LIBS})
|
|
|
|
@@ -457,13 +458,25 @@ ENDIF()
|
|
|
|
INSTALL(TARGETS mariadbclient
|
|
COMPONENT Development
|
|
+ EXPORT unofficial-libmariadb-targets
|
|
LIBRARY DESTINATION lib)
|
|
INSTALL(TARGETS libmariadb
|
|
COMPONENT SharedLibraries
|
|
+ EXPORT unofficial-libmariadb-targets
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
|
|
+install(EXPORT unofficial-libmariadb-targets DESTINATION share/unofficial-libmariadb)
|
|
+
|
|
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-libmariadb-config.cmake"
|
|
+[[include(CMakeFindDependencyMacro)
|
|
+find_dependency(ZLIB)
|
|
+find_dependency(OpenSSL)
|
|
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-libmariadb-targets.cmake")
|
|
+]])
|
|
+
|
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-libmariadb-config.cmake DESTINATION share/unofficial-libmariadb)
|
|
|
|
IF(0)
|
|
# On Windows, install PDB
|