我正在尝试使用 CMake 为 VS 2012 构建 c++ 连接器。它正在搜索 MySQL 目录,但找不到。
C:\mysql-connector-c++-1.1.3>cmake -DBOOST_ROOT:STRING=C:\cpp\boost
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line
C:/mysql-connector-c++-1.1.3/CMakeLists.txt:39 (if)
closes on the line
C:/mysql-connector-c++-1.1.3/CMakeLists.txt:41 (endif)
with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Environment compile flags:
-- Environment link flags:
-- Boost version: 1.53.0
-- BOOST_INCLUDE_DIRS=C:/cpp/boost
-- ENV{MYSQL_DIR} =
**CMake Error at FindMySQL.cm:220 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:**
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)
-- Configuring incomplete, errors occurred!
有没有办法手动设置它?谢谢你。