Hi all, I have found the problem. I have moved the call to add_custom_target to a line after project(). Now it works. Thanks, Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.cmake.org/pipermail/cmake/attachments/20110629/a8fddcdb/attachment.htm>