Comment 1 for bug 535616

Revision history for this message
Timowi (timo-wingender) wrote :

The problem is the way how the string for the target is created. It takes the path and replaces "." and "/" by an underscore. This works fine under unix like systems but not with windows. The problem is the colon in the path. I fixed it by adding it to the regexp.

--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -24,7 +24,7 @@

 if (CMAKE_BUILD_TYPE STREQUAL Debug)
   foreach(sourcefile ${WL_SRCS} ${WL_TEST_SRCS})
- string(REGEX REPLACE "\\.|\\/" "_" sourcenoslash ${sourcefile})
+ string(REGEX REPLACE "\\.|\\/|:" "_" sourcenoslash ${sourcefile})
     get_filename_component(sourcename ${sourcefile} NAME)
     set(stamp ${sourcenoslash}_codecheck_stamp_)
     set(PREFIX_WL_SRCS ${PREFIX_WL_SRCS};${CMAKE_CURRENT_BINARY_DIR}/codecheck-stamps/${stamp})