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
_______________________________________________
CMake mailing list
[EMAIL PROTECTED]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to