]> git.stg.codes - stg.git/commitdiff
Look for mysql-connector in FreeBSD paths.
authorMaksym Mamontov <madf@madf.info>
Fri, 19 Aug 2022 19:38:11 +0000 (22:38 +0300)
committerMaksym Mamontov <madf@madf.info>
Fri, 19 Aug 2022 19:38:11 +0000 (22:38 +0300)
cmake/modules/FindMySQLConnector.cmake

index 6ab31aea2270d7e8b3bdf2676912747171179325..77892f57e9545aabafab17b321db26eb038437e7 100644 (file)
@@ -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 )