当我尝试在 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 上——但我真的不明白这里出了什么问题……