File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,17 @@ if(FIREBASE_INCLUDE_FIRESTORE AND DESKTOP)
197
197
endif ()
198
198
199
199
if (FIREBASE_CPP_USE_PRIOR_GRADLE_BUILD )
200
+ # Quote meta characters in ${CMAKE_CURRENT_LIST_DIR} so we can
201
+ # match it in a regex.
202
+ # For example, '/path/with/+meta/char.acters' will become
203
+ # '/path/with/\+meta/char\.acters'.
204
+ string (REGEX REPLACE
205
+ "([][+.*()^])" "\\\\\\ 1" # Yes, this many \'s is correct.
206
+ current_list_dir_regex
207
+ "${CMAKE_CURRENT_LIST_DIR} " )
200
208
# Figure out where app's binary_dir was.
201
209
string (REGEX REPLACE
202
- "${CMAKE_CURRENT_LIST_DIR } /[^/]+/(.*)"
210
+ "${current_list_dir_regex } /[^/]+/(.*)"
203
211
"${CMAKE_CURRENT_LIST_DIR} /app/\\ 1"
204
212
APP_BINARY_DIR "${FIREBASE_BINARY_DIR} " )
205
213
You can’t perform that action at this time.
0 commit comments