1 Add mysql/ to PATH_SUFFIXES for the library search for mysql.
3 On common distros libmysqlclient* is installed and/or symlinked
5 Since we install the libraries into /usr/lib/mysql alone cppdb
6 fails to properly link to it giving runtime errors.
8 Status: https://sourceforge.net/p/cppcms/bugs/135/
10 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
12 diff -Nura cppdb-0.3.1.orig/CMakeLists.txt cppdb-0.3.1/CMakeLists.txt
13 --- cppdb-0.3.1.orig/CMakeLists.txt 2014-10-17 11:05:57.875429748 -0300
14 +++ cppdb-0.3.1/CMakeLists.txt 2014-10-17 11:12:57.486775484 -0300
19 - find_library(MYSQL_LIB mysqlclient)
20 + find_library(MYSQL_LIB mysqlclient PATH_SUFFIXES mysql)
21 find_path(MYSQL_PATH mysql.h PATH_SUFFIXES mysql)
22 if(MYSQL_LIB AND MYSQL_PATH)
23 include_directories(${MYSQL_PATH})