Fixed coveralls cmake module to handle windows paths

This commit is contained in:
Snaipe 2015-08-04 11:47:12 -07:00
parent fdca157049
commit 6037e04111

View file

@ -166,6 +166,7 @@ macro(get_source_path_from_gcov_filename _SRC_FILENAME _GCOV_FILENAME)
# #path#to#project#root#subdir#the_file.c.gcov -> /path/to/project/root/subdir/the_file.c
string(REGEX REPLACE "\\.gcov$" "" SRC_FILENAME_TMP ${_GCOV_FILENAME_WEXT})
string(REGEX REPLACE "\#" "/" SRC_FILENAME_TMP ${SRC_FILENAME_TMP})
string(REGEX REPLACE "~" ":" SRC_FILENAME_TMP ${SRC_FILENAME_TMP})
set(${_SRC_FILENAME} "${SRC_FILENAME_TMP}")
endmacro()