From: Maksym Mamontov Date: Fri, 19 Aug 2022 19:38:11 +0000 (+0300) Subject: Look for mysql-connector in FreeBSD paths. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a42349b9f8b4cbdcc6ad763ccf509f84fbaaf39d?ds=sidebyside Look for mysql-connector in FreeBSD paths. --- diff --git a/cmake/modules/FindMySQLConnector.cmake b/cmake/modules/FindMySQLConnector.cmake index 6ab31aea..77892f57 100644 --- a/cmake/modules/FindMySQLConnector.cmake +++ b/cmake/modules/FindMySQLConnector.cmake @@ -1,7 +1,7 @@ -find_path ( MySQLConnector_INCLUDE_DIR NAMES mysql/mysql.h mysql/mysql_version.h DOC "Path to MySQLConnector header files." ) +find_path ( MySQLConnector_INCLUDE_DIR PATHS /usr/local/include NAMES mysql/mysql.h mysql/mysql_version.h DOC "Path to MySQLConnector header files." ) mark_as_advanced ( MySQLConnector_INCLUDE_DIR ) -find_library ( MySQLConnector_LIB NAMES mysqlclient DOC "Location of MySQLConnector library." ) +find_library ( MySQLConnector_LIB PATHS /usr/local/lib NAMES mysqlclient DOC "Location of MySQLConnector library." ) mark_as_advanced ( MySQLConnector_LIB ) if ( MySQLConnector_INCLUDE_DIR )