Specifying an Additional Dependency for a Custom Build Step

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.
 
T

Tian Min Huang

Hello Gordon,

Thanks for your post. I reviewed your request carefully, and think more
information is needed before moving forward. Could you post a simple
project which is able to reproduce the problem? I will be glad to check it
on my side.

I look forward to hearing from you.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Gordon Watts

Hi,
Ok. When I got your email I sat down and spent an hour trying to
build a project that showed the failure in isolation. Couldn't do it.
So I went back to my original, large work space, and, lo, now it
works! I have no idea why it failed. Pilot error, obviously, but I'm
not sure what I was doing wrong. Sorry about that.

Cheers,
Gordon.
 
T

Tian Min Huang

Hello Gordon,

Thanks a lot for your update. If the problem re-occur, please feel free to
post.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top