문제

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?

도움이 되었습니까?

해결책

I found a way to do it:

EMPTY_STRING =
BAR = $(EMPTY_STRING) foo // the empty string protects leading space.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top