-1

I Am not able to edit the macro ${OutDir} in my c++ project.It contains a space in its value and hence is causing build to fail.What I want is to change it from LIB Realease to LIB_Release or something that does not contain a space. I did not get a satisfactory answer to this even after following links .link1 link2 link3. If editing existing macros is not possible how to add new ones?

Community
  • 1
  • 1
nnm
  • 1,335
  • 5
  • 18
  • 32

1 Answers1

0

$(OutDir) is set in the Properties of the project. Rightclick on the project -> properties -> configuation properties -> general -> output directory.

Nonetheless, VS builds do also work if the $(OutDir) contains spaces as the folder name gets protected by "" (as can be seen in configuration properties -> linker -> commandline)

Maybe you have some pre- or postbuild evens which use $(OutDir). If yes you should enclose it within "".

derpirscher
  • 14,418
  • 3
  • 18
  • 35