Skip to content

Commit d6af055

Browse files
grooverdandr-m
authored andcommitted
MDEV-22864: cmake/libutils account for cmake-2.8.12.1
That doesn't support STRING(APPEND ..)
1 parent ade0f40 commit d6af055

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmake/libutils.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,9 @@ MACRO(MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE)
207207

208208
SET(SCRIPT_CONTENTS "CREATE $<TARGET_FILE:${TARGET}>\n")
209209
FOREACH(LIB ${STATIC_LIBS})
210-
STRING(APPEND SCRIPT_CONTENTS "ADDLIB ${LIB}\n")
210+
SET(SCRIPT_CONTENTS "${SCRIPT_CONTENTS}\nADDLIB ${LIB}\n")
211211
ENDFOREACH()
212-
STRING(APPEND SCRIPT_CONTENTS "SAVE\nEND\n")
213-
FILE(WRITE ${MRI_SCRIPT_TPL} "${SCRIPT_CONTENTS}")
212+
FILE(WRITE ${MRI_SCRIPT_TPL} "${SCRIPT_CONTENTS}\nSAVE\nEND\n")
214213
FILE(GENERATE OUTPUT ${MRI_SCRIPT} INPUT ${MRI_SCRIPT_TPL})
215214

216215
ADD_CUSTOM_COMMAND(TARGET ${TARGET} POST_BUILD

0 commit comments

Comments
 (0)