View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001206CMakepublic2004-09-27 04:542004-09-27 08:12
ReporterBernhard Zach 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001206: nmake dependency problems
DescriptionThe Scenario:
A library HWTestCMakeLibA.lib is build of srcLibA.cxx and srcLibA.h
A custom command(POST_BUILD) on the library copies the headerfile to an
other place.

Now I run nmake to build the library -> all works fine

Now I remove the object file srcLibA.obj and start nmake again:
My Object file is build again, but not the library (and the custom command)
Now I start nmake again: the library is build and the custom command is
executed. Why not at the first time?

The Makefile looks correct(at least for me).

The whole Problem occurs only on Windows. On Linux with the same files, all
works correct.
TagsNo tags attached.
Attached Fileszip file icon nmake_problem.zip [^] (635 bytes) 1969-12-31 19:00
? file icon Makefile [^] (7,461 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0001503)
Brad King (manager)
2004-09-27 08:12

I tried your example with NMake from VS 6, 7, and 7.1 and all three work fine. I cannot duplicate the problem. I notice that the Makefile contains paths like:

\\hwal02\usr2\hyperwave\bzach
X:\hyperwave\bzach

This looks like a network mounted drive. Make systems often have problems with network drives, especially when the clock on the disk server and on your machine are not perfectly synchronized (down to the 10ths of a second the Make rules take to run).

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team