Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
17 lines
510 B
Plaintext
17 lines
510 B
Plaintext
function(fix_header FILE)
|
|
file(READ ${FILE} FILE_CONTENT)
|
|
string(REPLACE "../client" "client" FILE_CONTENT "${FILE_CONTENT}")
|
|
string(REPLACE "../common" "common" FILE_CONTENT "${FILE_CONTENT}")
|
|
string(REPLACE "../tracy" "tracy" FILE_CONTENT "${FILE_CONTENT}")
|
|
file(WRITE ${FILE} "${FILE_CONTENT}")
|
|
endfunction()
|
|
|
|
function(fix_headers FOLDER)
|
|
file(GLOB FILES "${FOLDER}/*.h*")
|
|
foreach(FILE ${FILES})
|
|
fix_header(${FILE})
|
|
endforeach()
|
|
endfunction()
|
|
|
|
fix_headers(${FOLDER})
|