[CMake] [CPack] CPackConfig.cmake vs CPackSourceConfig.cmake

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Apr 13 04:51:21 EDT 2007


Hello,

  I have the following custom target:

ADD_CUSTOM_TARGET(data_tgz
  COMMAND cpack -G TGZ --config CPackConfig.cmake
  COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_BINARY_DIR}/${CPACK_PACKAGE_FILE_NAME}.tar.gz
${CMAKE_BINARY_DIR}/data.tar.gz
)

  Basically a deb package expect a file named 'data.tar.gz' to
contains all the libs/bin in it. For some reason
CPACK_PACKAGE_FILE_NAME is being expanded as using value from
CPackSourceConfig.cmake instead of CPackConfig.cmake.

  How was I suposed to write this custom target instead ?

Thanks

-- 
Mathieu
Tel: +33 6 32 13 33 40


More information about the CMake mailing list