3

Suppose I want to define the value of an environment variable BAR to be " foo", without the quotes. If my .xcconfig file has the line

BAR = foo

that will set it to "foo". Same goes if it has the line

BAR =  foo

Is there a way to do what I want?

RiaD
  • 46,822
  • 11
  • 79
  • 123
William Jockusch
  • 26,513
  • 49
  • 182
  • 323

1 Answers1

12

I found a way to do it:

EMPTY_STRING =
BAR = $(EMPTY_STRING) foo // the empty string protects leading space.
William Jockusch
  • 26,513
  • 49
  • 182
  • 323