无法使用CMake 2.8.10.2为MySQL Connector / C 6.0.2生成构建文件

时间:2013-02-14 12:10:47

标签: mysql build cmake mysql-connector cpack

当我尝试在Windows 7 x64上使用CMake 2.8.10.2为MySQL Connector / C 6.0.2生成Visual Studio 2010构建文件时,出现以下两个错误。

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CPack.cmake:395 (message):
  CPack package description file: "README" could not be found.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CPack.cmake:399 (cpack_check_file_exists)
  CMakeLists.txt:371 (INCLUDE)


CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CPack.cmake:395 (message):
  CPack license resource file: "LICENSE.mysql" could not be found.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CPack.cmake:400 (cpack_check_file_exists)
  CMakeLists.txt:371 (INCLUDE)

在我看来问题是CPack的问题 - 但我真的不知道这里出了什么问题......

1 个答案:

答案 0 :(得分:0)

当我在外部目录中构建它时,我遇到了同样的问题。在我将其构建回MySQL Connector / C 6.0.2文件夹

后,问题就消失了