1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# https://jira.mariadb.org/browse/CONC-174
set(cmakelists ${mariadb_source}/CMakeLists.txt)
file(READ ${cmakelists} content)
# do not use replace /MD with /MT
string(REPLACE
"STRING(REPLACE \"/MD\" \"/MT\" COMPILER_FLAGS \${COMPILER_FLAGS})"
"# STRING(REPLACE \"/MD\" \"/MT\" COMPILER_FLAGS \${COMPILER_FLAGS})"
content "${content}"
)
file(WRITE ${cmakelists} "${content}")
# https://jira.mariadb.org/browse/CONC-764
if(${processor} STREQUAL "arm64")
set(ma_context ${mariadb_source}/libmariadb/ma_context.c)
file(READ ${ma_context} content)
string(REPLACE
"\"x18\", "
""
content "${content}"
)
file(WRITE ${ma_context} "${content}")
endif()
|