diff --git a/cmake/ConfigureOpenSSL.cmake b/cmake/ConfigureOpenSSL.cmake index ebcb514..521f6a3 100644 --- a/cmake/ConfigureOpenSSL.cmake +++ b/cmake/ConfigureOpenSSL.cmake @@ -77,7 +77,7 @@ function(apply_ccache FILE) endif() file(READ ${FILE} MAKEFILE) - string(REGEX REPLACE "(\nCC=)([^\n]*)" "\\1\"${CCACHE}\" \"\\2\"" MAKEFILE "${MAKEFILE}") + string(REPLACE "\nCC=" "\nCC=ccache " MAKEFILE "${MAKEFILE}") if(MSVC) string(REPLACE "/Zi /Fdossl_static.pdb " "" MAKEFILE "${MAKEFILE}") @@ -161,4 +161,4 @@ function(configure_openssl) string(REPLACE "/W3" "/W0" MAKEFILE "${MAKEFILE}") file(WRITE ${OPENSSL_MAKEFILE} "${MAKEFILE}") endif() -endfunction() +endfunction() \ No newline at end of file