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?
Asked
Active
Viewed 605 times
-1
-
1Why tagging with `C#` and `.NET`? – oleksii Jun 30 '14 at 10:02
1 Answers
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