CMakeLists.txt处的CMake错误

时间:2014-07-17 12:13:56

标签: mysql cmake

当我安装mysql时,我得到以下错误。

CMake Error at CMakeLists.txt:130 (INCLUDE):
  include could not find load file:

    maintainer


CMake Error at CMakeLists.txt:152 (INCLUDE):
  include could not find load file:

    character_sets


CMake Error at CMakeLists.txt:154 (INCLUDE):
  include could not find load file:

    ssl


CMake Error at CMakeLists.txt:155 (INCLUDE):
  include could not find load file:

    readline


CMake Error at CMakeLists.txt:156 (INCLUDE):
  include could not find load file:

    mysql_version


CMake Error at CMakeLists.txt:157 (INCLUDE):
  include could not find load file:

    libutils


CMake Error at CMakeLists.txt:158 (INCLUDE):
  include could not find load file:

    dtrace


CMake Error at CMakeLists.txt:159 (INCLUDE):
  include could not find load file:

    plugin


CMake Error at CMakeLists.txt:160 (INCLUDE):
  include could not find load file:

    install_macros


CMake Error at CMakeLists.txt:161 (INCLUDE):
  include could not find load file:

    install_layout


CMake Error at CMakeLists.txt:162 (INCLUDE):
  include could not find load file:

    mysql_add_executable


CMake Error at CMakeLists.txt:258 (INCLUDE):
  include could not find load file:

    configure.cmake


CMake Error at CMakeLists.txt:265 (MYSQL_CHECK_ZLIB_WITH_COMPRESS):
  Unknown CMake command "MYSQL_CHECK_ZLIB_WITH_COMPRESS".


-- Configuring incomplete, errors occurred!

1 个答案:

答案 0 :(得分:0)

CMAKE_MODULE_PATH设置为包含文件maintainer.cmake等的相应目录

然后发布您的源代码!