【问题标题】:CMake Error at CMakeLists.txtCMakeLists.txt 中的 CMake 错误
【发布时间】:2014-07-17 12:13:56
【问题描述】:

当我安装 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!

【问题讨论】:

  • 您的问题不完整,投反对票。什么版本的 MySQL、CMake、什么操作系统等。你尝试过什么?究竟是什么导致了错误输出?

标签: mysql cmake


【解决方案1】:

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

当然还要发布你的源代码!

【讨论】:

    猜你喜欢
    • 2013-09-10
    • 2020-12-09
    • 2020-06-08
    • 2017-06-07
    • 2019-05-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多