mirror of https://github.com/WerWolv/ImHex.git
7 lines
307 B
CMake
7 lines
307 B
CMake
|
file(READ ${OUTPUT_RUNTIMECONFIG} FILE_CONTENTS)
|
||
|
|
||
|
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}")
|
||
|
|
||
|
file(WRITE ${OUTPUT_RUNTIMECONFIG} "${FILE_CONTENTS_OUT}")
|