Author Topic: Wrong $(variables) output  (Read 4566 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Wrong $(variables) output
« on: March 14, 2007, 03:47:04 pm »
During post processing I get the following output for:

cmd /c echo $(TARGET_OUTPUT_DIR)
cmd /c echo $(TARGET_NAME)
cmd /c echo $(TARGET_OUTPUT_FILE)

C:\Usr\Proj\ThreadSearch\
Debug
.\bin\Debug\ThreadSearch.dll

Shouldn't number 1 be:

 C:\Usr\Proj\ThreadSearch\.bin\Debug\

bigbug

  • Guest
Re: Wrong $(variables) output
« Reply #1 on: March 14, 2007, 04:34:14 pm »

Offline jomeggs

  • Multiple posting newcomer
  • *
  • Posts: 92
Re: Wrong $(variables) output
« Reply #2 on: March 14, 2007, 05:21:59 pm »
Shouldn't number 1 be:

 C:\Usr\Proj\ThreadSearch\.bin\Debug\

That's not all, there is something wrong with these variables.
  • Create two new console projects (test 1 and test2) in a workspace
  • add "cmd /c $(TARGET_OUTPUT_FILE)" to both in pre-build steps
  • activate first project
  • try "build workspace"

For both projects you will see "./test1".  :(

It seems to me, that the variable expansion works only for the currently activatet project.