I'm using XAMPP to install and run MySQL, and when I run me@host:/path/to/mysql-connector-cpp> cmake .
, it throws
-- BOOST_INCLUDE_DIRS=/usr/local/include
-- ENV{MYSQL_DIR} =
CMake Error at FindMySQL.cm:202 (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:166 (INCLUDE)
CMake Error at FindMySQL.cm:204 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:166 (INCLUDE)
-- Configuring incomplete, errors occurred!
I'm using XAMPP so I'm sure cmake is looking for MySQL in the wrong directory. How do I tell it where it's located?