[CMake] CPack source distribution recursing out of control

Jack Stalnaker jack.stalnaker at gmail.com
Mon Sep 17 22:20:23 EDT 2012


Hi,

I'm not sure what I'm doing wrong, but when I run cpack --config CPackSourceConfig.cmake -G TGZ, the operation runs forever and produces archives on the order of dozens of gigabytes. As far as cpack goes, I don't have much specified other than include(cpack) and the version variables. I do have include(InstallRequiredSystemLibraries) as well, but that's pretty much it.

I did some investigation, and the problem was pretty easy to spot. Inside the generated _CPack* directory was the installed source directory, which in turn had a nested copy of the same source directory, etc, down many, many levels, so that many gigabytes of disc space were consumed. I'm sorry if this isn't specific enough, but does anyone know what's going on? 

Thanks,
--Jack


More information about the CMake mailing list