mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 20:57:51 +08:00
51 lines
2.0 KiB
Diff
51 lines
2.0 KiB
Diff
diff --git a/cmake/install_plugins.cmake b/cmake/install_plugins.cmake
|
|
index b8d15ba..7f59db7 100644
|
|
--- a/cmake/install_plugins.cmake
|
|
+++ b/cmake/install_plugins.cmake
|
|
@@ -8,7 +8,7 @@
|
|
# plugin installation
|
|
|
|
MACRO(INSTALL_PLUGIN name binary_dir)
|
|
- INSTALL(TARGETS ${name} COMPONENT ClientPlugins DESTINATION ${INSTALL_PLUGINDIR})
|
|
+ INSTALL(TARGETS ${name} COMPONENT ClientPlugins DESTINATION ${INSTALL_PLUGINDIR}/../../../bin/plugin)
|
|
IF(MSVC)
|
|
INSTALL(FILES $<TARGET_PDB_FILE:${name}> COMPONENT Debuginfo
|
|
DESTINATION symbols CONFIGURATIONS Debug RelWithDebInfo)
|
|
diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
|
|
index f406b37..a9ae9d7 100644
|
|
--- a/libmariadb/CMakeLists.txt
|
|
+++ b/libmariadb/CMakeLists.txt
|
|
@@ -395,10 +395,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} mariadbclient.def)
|
|
+ ADD_LIBRARY(libmariadb ${libmariadb_RC} mariadbclient.def)
|
|
TARGET_LINK_LIBRARIES(libmariadb LINK_PRIVATE mariadbclient)
|
|
SET_TARGET_PROPERTIES(libmariadb PROPERTIES LINKER_LANGUAGE C)
|
|
ENDIF()
|
|
@@ -452,13 +452,14 @@ ENDIF()
|
|
|
|
INSTALL(TARGETS mariadbclient
|
|
COMPONENT Development
|
|
- DESTINATION ${INSTALL_LIBDIR})
|
|
+ LIBRARY DESTINATION lib)
|
|
INSTALL(TARGETS libmariadb
|
|
- COMPONENT SharedLibraries
|
|
- DESTINATION ${INSTALL_LIBDIR})
|
|
+ COMPONENT SharedLibraries
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib)
|
|
|
|
-
|
|
-IF(MSVC)
|
|
+IF(0)
|
|
# On Windows, install PDB
|
|
INSTALL(FILES $<TARGET_PDB_FILE:libmariadb> DESTINATION "${INSTALL_LIBDIR}"
|
|
CONFIGURATIONS Debug RelWithDebInfo
|