mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
cmake: only match '^SF:/src/....' instead of '/src/...'
The previous regex erroneously matches the `src` subfolder of rwengine.
This commit is contained in:
parent
d43123ba50
commit
ca4a459e91
@ -360,7 +360,7 @@ function(codecoverage_lcov_capture)
|
||||
string(REPLACE "/" "\\/" PROJBINDIR_ESCAPED "${PROJECT_BINARY_DIR}/")
|
||||
string(REPLACE "/" "\\/" PROJSRCDIR_ESCAPED "${PROJECT_SOURCE_DIR}/")
|
||||
add_custom_command(OUTPUT "${TOTALCAPTURE_FILE_UPLOAD}"
|
||||
COMMAND sed -e 's/${PROJBINDIR_ESCAPED}//g' -e 's/${PROJSRCDIR_ESCAPED}//g' "${TOTALCAPTURE_FILE}" > "${TOTALCAPTURE_FILE_UPLOAD}"
|
||||
COMMAND sed -e 's/^SF:${PROJBINDIR_ESCAPED}/SF:/g' -e 's/^SF:${PROJSRCDIR_ESCAPED}/SF:/g' "${TOTALCAPTURE_FILE}" > "${TOTALCAPTURE_FILE_UPLOAD}"
|
||||
DEPENDS lcov-geninfo "${TOTALCAPTURE_FILE}"
|
||||
COMMENT "Creating ${TOTALCAPTURE_FILE_UPLOAD}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user