Skip to content

Commit

Permalink
Update FindMariaDB.cmake
Browse files Browse the repository at this point in the history
Users can use -DCMAKE_LIBRARY_PATH=${INSTALL}/lib without needing to specify mariadb separately like -DCMAKE_LIBRARY_PATH=${INSTALL}/lib/mariadb
  • Loading branch information
JoyBinY authored and rbock committed Apr 10, 2024
1 parent 75ce4f7 commit 637afd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/modules/FindMariaDB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ else()
NAMES mariadb_version.h
PATH_SUFFIXES mariadb mysql
)
find_library(MariaDB_LIBRARY NAMES mariadb)
find_library(MariaDB_LIBRARY
NAMES mariadb
PATH_SUFFIXES mariadb mysql
)
endif()

include(FindPackageHandleStandardArgs)
Expand All @@ -61,4 +64,4 @@ if(MariaDB_FOUND AND NOT TARGET MariaDB::MariaDB)
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
endif()

mark_as_advanced(MariaDB_INCLUDE_DIR MariaDB_LIBRARY)
mark_as_advanced(MariaDB_INCLUDE_DIR MariaDB_LIBRARY)

0 comments on commit 637afd0

Please sign in to comment.