diff --git a/cmake/FindMariaDB.cmake b/cmake/FindMariaDB.cmake index 65f77db4..3ab4654e 100644 --- a/cmake/FindMariaDB.cmake +++ b/cmake/FindMariaDB.cmake @@ -143,5 +143,6 @@ endif() # Add directories to include lists target_include_directories(MariaDB::ConnCpp SYSTEM INTERFACE ${MARIADB_INCLUDE_DIR}) +target_link_directories(MariaDB::ConnCpp PUBLIC ${MARIADBCPP_LIBRARY_DIR}) set(MariaDB_FOUND TRUE)