G
Gordon Watts
Hi there,
I've got a special header file which I run an small external program
over to produce a .cpp file that I want to have my project build. The
special header file includes a second header file. I'm using VS.NET
2003 and I'd like to automate the process.
To automate this I used the Custom Build Step associated with my
first input file. I specified the output file, and also the second
header as an additional dependency, and add the command. I then add
the resulting .cpp file to the project. When I hit build, everything
works as expected -- the .cpp file is generated, and then compiled,
and my library is properly built.
Now, if I modify the first header file, the custom build step is
correctly re-run. However, when I modify just the second header file
(the one on the add' dep. line), the custom build step is not
triggered. I've tried absolute path specification, relative (to the
project directory). Everything. And it just is never triggered. I also
note that when I specify a bad filename the step is never triggered. I
have no idea what I'm doing wrong here. Any help is most appreciated!
Cheers,
Gordon.
I've got a special header file which I run an small external program
over to produce a .cpp file that I want to have my project build. The
special header file includes a second header file. I'm using VS.NET
2003 and I'd like to automate the process.
To automate this I used the Custom Build Step associated with my
first input file. I specified the output file, and also the second
header as an additional dependency, and add the command. I then add
the resulting .cpp file to the project. When I hit build, everything
works as expected -- the .cpp file is generated, and then compiled,
and my library is properly built.
Now, if I modify the first header file, the custom build step is
correctly re-run. However, when I modify just the second header file
(the one on the add' dep. line), the custom build step is not
triggered. I've tried absolute path specification, relative (to the
project directory). Everything. And it just is never triggered. I also
note that when I specify a bad filename the step is never triggered. I
have no idea what I'm doing wrong here. Any help is most appreciated!
Cheers,
Gordon.