Skip to content

Commit 42137bf

Browse files
committed
more specific search.
This fixes a bug if the checkout path already has "firebase" in it. In such cases, the headers won't be copied to firebase.framework. Making the search more specific fixes it.
1 parent 46c31ce commit 42137bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,11 @@ if (IOS)
527527
# Copy header from source dir "src/include/firebase/*" to destination dir "Headers/*"
528528
list(APPEND framework_HDRS ${internal_HDRS})
529529
foreach(hfile ${framework_HDRS})
530-
string(FIND ${hfile} "firebase/" pos_firebase)
530+
string(FIND ${hfile} "src/include/firebase/" pos_firebase)
531531
string(COMPARE NOTEQUAL ${pos_firebase} -1 find)
532532
if(${find})
533533
string(FIND ${hfile} "/" pos_e REVERSE)
534-
math(EXPR pos_s "${pos_firebase} + 8")
534+
math(EXPR pos_s "${pos_firebase} + 20")
535535
math(EXPR len "${pos_e} - ${pos_s}")
536536
string(SUBSTRING ${hfile} ${pos_s} ${len} dir)
537537
# file(COPY ${hfile} DESTINATION Headers/${dir})

0 commit comments

Comments
 (0)