Looks like the values of CPACK_RESOURCE_FILE_README and CPACK_RESOURCE_FILE_LICENSE are not set to full path values. Since the directory may be different when CPack runs, they should be specified as full path values, i.e. "${CMAKE_CURRENT_SOURCE_DIR}/README" instead of "README".
Is that the problem? What are your values for those variables? HTH, D -----Original Message----- From: Robert Hegner <rheg...@hsr.ch> To: cmake <cmake@cmake.org> Sent: Thu, Feb 14, 2013 9:09 am Subject: [CMake] Cannot generate build files because of CPack related errors Hi all, I get the following two errors when I try to generate the Visual Studio 2010 build files for MySQL Connector/C 6.0.2 with CMake 2.8.10.2 on Windows 7 x64. 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) Since no MySQL specific files seem to be involved, I guess this is a problem with CPack. What goes wrong here??? Robert -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake