[CMake] Custom command behavior

2011-11-15 Thread Alexander Broekhuis
Hi all, When using a custom command in a macro I see some strange behavior. The following setup is used: I have a macro, called bundle, in this macro a custom command is added. This command uses a library as target, and executes cpack with a configuration. I use cpack to create a zip file inside

Re: [CMake] Custom command behavior

2011-11-15 Thread Alexander Broekhuis
Hello, I think I've already found the problem. In the custom command I run a CPack script, and CPack triggers a full build of the project, which in turn again triggers the custom command (and thus the CPack command). Is it possible to make the CPack config so that only a specific target is being