e9098ff
diff -up ./rts/build/cmake/Util.cmake.cmake3 ./rts/build/cmake/Util.cmake
e9098ff
--- ./rts/build/cmake/Util.cmake.cmake3	2015-02-21 11:07:13.856812218 -0500
e9098ff
+++ ./rts/build/cmake/Util.cmake	2015-02-21 11:07:39.115759584 -0500
e9098ff
@@ -169,7 +169,7 @@ Macro    (GetListOfSubModules list_var)
e9098ff
 
e9098ff
 	# Strip away the "/CMakeLists.txt" parts, so we end up with just a list of dirs,
e9098ff
 	# for example: AAI;RAI;KAIK
e9098ff
-	String(REPLACE "//CMakeLists.txt" "" ${list_var} "${${list_var}}")
e9098ff
+	String(REGEX REPLACE "\\/*CMakeLists\\.txt" "" ${list_var} "${${list_var}}")
e9098ff
 EndMacro (GetListOfSubModules list_var)
e9098ff
 
e9098ff