2023-07-19 21:40:24 +02:00
|
|
|
file(READ "${OUTPUT_RUNTIMECONFIG}" FILE_CONTENTS)
|
2023-07-15 14:29:14 +02:00
|
|
|
|
|
|
|
set(VERSION_REGEX [["version": "([0-9]+\.[0-9]+\.[0-9]+)"]])
|
|
|
|
set(REPLACE_VALUE [["version": "7.0.0"]])
|
|
|
|
string(REGEX REPLACE "${VERSION_REGEX}" ${REPLACE_VALUE} FILE_CONTENTS_OUT "${FILE_CONTENTS}")
|
|
|
|
|
2023-07-19 21:40:24 +02:00
|
|
|
file(WRITE "${OUTPUT_RUNTIMECONFIG}" "${FILE_CONTENTS_OUT}")
|