[CMake] Bug? add_custom_command() ignores head file outputs

2012-08-24 Thread Adam B
Hello all, I'm relatively new to CMake but I've encountered some unexpected behavior. Perhaps it's by design or perhaps it's a bug - you tell me. The short story is this: It appears that add_custom_command() is ignored if the only OUTPUT is a C header file (.h). The generated makefiles do

Re: [CMake] Bug? add_custom_command() ignores head file outputs

2012-08-24 Thread Rolf Eike Beer
Adam B wrote: Hello all, I'm relatively new to CMake but I've encountered some unexpected behavior. Perhaps it's by design or perhaps it's a bug - you tell me. The short story is this: It appears that add_custom_command() is ignored if the only OUTPUT is a C header file (.h). The

Re: [CMake] Bug? add_custom_command() ignores head file outputs

2012-08-24 Thread Andreas Pakulat
Hi, On Fri, Aug 24, 2012 at 7:27 PM, Adam B ad...@videx.com wrote: Hello all, I'm relatively new to CMake but I've encountered some unexpected behavior. Perhaps it's by design or perhaps it's a bug - you tell me. The short story is this: It is a bug, but not in CMake, its in your cmake

Re: [CMake] Bug? add_custom_command() ignores head file outputs

2012-08-24 Thread Adam B
On 08/24/2012 11:09 AM, Andreas Pakulat wrote: Hi, On Fri, Aug 24, 2012 at 7:27 PM, Adam Bad...@videx.com wrote: Hello all, I'm relatively new to CMake but I've encountered some unexpected behavior. Perhaps it's by design or perhaps it's a bug - you tell me. The short story is this: It