Why does Visual Studio 2012 launch a custom build step when the source file has not been modified?

I use yacc and lex with Visual Studio 2012 C ++ / CLI and created a custom build step for the yacc source file as shown in the image below

Custom Build Property Page

There are two dependencies for the output file. This is the yacc icl5kyacc.y source file and the yyparse.c template file. Every time I create a solution, a custom build step is executed even when the source files yyparse.c and icl5kyacc.y have not been changed. Here is a list of directories after assembly.

  21-Sep-2012  10:19:18p         28,210    A icl5kyacc.y
  17-Sep-2012   7:32:06p          9,042    A yyparse.c
  22-Sep-2012  11:43:56a         38,233    A ICL5KYACC.cpp
  22-Sep-2012  11:43:56a          2,160    A icl5kyacc.h

And after construction again

2> Generate icl5kyacc.cpp from icl5kyacc.y

  21-Sep-2012  10:19:18p         28,210    A icl5kyacc.y
  17-Sep-2012   7:32:06p          9,042    A yyparse.c
  22-Sep-2012  11:45:46a         38,233    A ICL5KYACC.cpp
  22-Sep-2012  11:45:46a          2,160    A icl5kyacc.h

, , ? , , % (AdditionalInputs), Studio " ". , , - , .

+5
2

, % (Directory) ICL5K\ICL5K \, . , yyparse.c C:\ICL5K\ICL5K\ICL5K\ICL5K. $(ProjectDir), , "C:\ICL5K\ICL5K \". , , , . image here icl5kyacc.y , icl5kyacc.y, .

+3

, , ?

, %(Directory)yyparse.c ( .y ). %(Directory)icl5kyacc.h %(Directory)ICL5KYACC.cpp, , , , , .

, . , , .

+3

All Articles