mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 02:51:39 +08:00
74844c7546
* [libmysql/libmariadb] Add vcpkg-cmake-wrapper and usage * [libmysql] Export target unofficial-libmysql * [libmariadb] Export target unofficial-libmariadb * Add conditions * Remove empty folder * [libmysql] Enable static build, generate library mysqlclient * Update ports/libmysql/CONTROL * [libmysql] Re-write portfile.cmake * [vcpkg_clean_executables_in_bin] clean up the pdbs * [libmysql] Fix tools on non-Windows * [libmysql] Fix tools, fix wrapper * [libmysql] Add macro libmysql_FOUND * [vcpkg_clean_executables_in_bin] Revert changes * [libmysql] Export unofficial-libmysql on both dynamic and static * Update ports/libmariadb/export-cmake-targets.patch Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
10 lines
244 B
CMake
10 lines
244 B
CMake
find_package(unofficial-libmysql CONFIG REQUIRED)
|
|
if (TARGET mysqlclient)
|
|
set(MYSQL_LIBRARY mysqlclient)
|
|
elseif (TARGET libmysql)
|
|
set(MYSQL_LIBRARY libmysql)
|
|
endif()
|
|
|
|
set(libmysql_FOUND 1)
|
|
set(MYSQL_LIBRARIES ${MYSQL_LIBRARY})
|