[CMake] Cannot generate build files because of CPack related errors

Robert Hegner rhegner at hsr.ch
Fri Feb 15 02:29:41 EST 2013


Thanks Eric, that helped! It also built without any errors (I didn't use 
standard configuration but replaced all /MD with /MT and /MDd with /MTd).

Am 14.02.2013 19:55, schrieb Eric Noulard:
> 2013/2/14 David Cole <dlrdave at aol.com>:
>> 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".
>
> David is right.
> Source code is accessible here:
> http://dev.mysql.com/downloads/connector/c/
>
>> Is that the problem? What are your values for those variables?
>
> After changing
> IF(EXISTS "COPYING")
>    SET(CPACK_RESOURCE_FILE_LICENSE     "COPYING")
> ELSE(EXISTS "COPYING")
>    SET(CPACK_RESOURCE_FILE_LICENSE     "LICENSE.mysql")
> ENDIF(EXISTS "COPYING")
> SET(CPACK_PACKAGE_DESCRIPTION_FILE    "README")
> to
> IF(EXISTS "${CMAKE_SOURCE_DIR}/COPYING")
>    SET(CPACK_RESOURCE_FILE_LICENSE     "${CMAKE_SOURCE_DIR}/COPYING")
> ELSE(EXISTS "${CMAKE_SOURCE_DIR}/COPYING")
>    SET(CPACK_RESOURCE_FILE_LICENSE     "${CMAKE_SOURCE_DIR}/LICENSE.mysql")
> ENDIF(EXISTS "${CMAKE_SOURCE_DIR}/COPYING")
> SET(CPACK_PACKAGE_DESCRIPTION_FILE    "${CMAKE_SOURCE_DIR}/README")
>
> it can be configure, but then I have a bunch of compile error I do not have time
> to investigate.
>
> Note that the source tarball is polluted with a lot of cmake-generated file:
>   CMakeFiles, Makefile, cmake_install.cmake, ....
>
> which looks seems to have been left over after an in-source build.
> May be you should ask for a cleaner repackaging of this source tarball.
>



More information about the CMake mailing list