2009/3/9 Adolfo Rodríguez <dof...@gmail.com>:
> Hi,
>
> I have set up CPack to generate source and binary packages with the TGZ
> generator. As I understand, the compressed tar consists of the files located
> in:
> ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux-Source/TGZ/
>
> I want to exclude some files from the package_source target, so I need to
> reference the above path. Are there any CMAKE/CPACK variable that contains
> the
> _CPack_Packages/Linux-Source/TGZ/ part of the path? So far I haven't found
> any, and am currently hardcoding this string in my CPack scripts.
>
> Any hints would be appreciated,

I'm not sure but
if I remember well it should be  CPACK_TOPLEVEL_DIRECTORY.

The CPack RPM generator has a "debugging" mode during which
it shows you some of thoses vars.

You may try:
cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM

then induce the values for the CPack TGZ generator.

CPack RPM is a binary generator so source generator
may use different vars. :-(

The next step would be to find+grep the source code :-)
-- 
Erk
_______________________________________________
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

Reply via email to