0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fix mariadb include dir not found

This commit is contained in:
Moritz Wirger 2022-12-09 15:45:05 +01:00 committed by Roland Bock
parent 2aa9797117
commit c550694b44

View File

@ -24,12 +24,18 @@
# POSSIBILITY OF SUCH DAMAGE. # POSSIBILITY OF SUCH DAMAGE.
if(DEFINED MSVC) if(DEFINED MSVC)
set(SEARCH_PATHS
"$ENV{ProgramFiles}/MariaDB/*"
"$ENV{ProgramFiles\(x86\)}/MariaDB/*"
)
find_path(MariaDB_INCLUDE_DIR find_path(MariaDB_INCLUDE_DIR
NAMES mariadb_version.h NAMES mariadb_version.h
PATHS ${SEARCH_PATHS}
PATH_SUFFIXES include PATH_SUFFIXES include
) )
find_library(MariaDB_LIBRARY find_library(MariaDB_LIBRARY
NAMES libmariadb NAMES libmariadb
PATHS ${SEARCH_PATHS}
PATH_SUFFIXES lib PATH_SUFFIXES lib
) )
else() else()