Skip to content

Commit 822e10c

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 0677ef6 + b041352 commit 822e10c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

cmake/cmake/modules/PHP/PkgConfigGenerator.cmake

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,17 @@ function(pkgconfig_generate_pc)
245245
COMMENT "[PkgConfig] Generating ${outputRelativePath}"
246246
)
247247

248-
install(CODE "
248+
string(CONFIGURE [[
249249
block()
250-
set(resultVariables ${resultVariables})
251-
set(resultValues \"${resultValues}\")
250+
set(resultVariables @resultVariables@)
251+
set(resultValues "@resultValues@")
252252

253253
foreach(var value IN ZIP_LISTS resultVariables resultValues)
254-
set(\${var} \"\${value}\")
254+
set(${var} "${value}")
255255
endforeach()
256256

257-
configure_file(
258-
${template}
259-
${output}
260-
@ONLY
261-
)
257+
configure_file("@template@" "@output@" @ONLY)
262258
endblock()
263-
")
259+
]] code @ONLY)
260+
install(CODE "${code}")
264261
endfunction()

0 commit comments

Comments
 (0)