diff --git a/cmake/FindMariaDB.cmake b/cmake/FindMariaDB.cmake index 3ab4654e..74b6038b 100644 --- a/cmake/FindMariaDB.cmake +++ b/cmake/FindMariaDB.cmake @@ -143,6 +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}) +target_link_directories(MariaDB::ConnCpp INTERFACE ${MARIADBCPP_LIBRARY_DIR}) set(MariaDB_FOUND TRUE)