--- rts/build/cmake/Util.cmake.old 2015-08-16 16:21:29.763613697 +0300
+++ rts/build/cmake/Util.cmake 2015-08-16 16:21:52.857111941 +0300
@@ -169,7 +169,7 @@
# Strip away the "/CMakeLists.txt" parts, so we end up with just a list of dirs,
# for example: AAI;RAI;KAIK
# GLOB can prefix with "//" or "/" (perhaps changed in cmake 3.1.0), this double replace will support both "//" and "/"
- String(REPLACE "/CMakeLists.txt" "" ${list_var} "${${list_var}}")
+ String(REGEX REPLACE "\\/*CMakeLists\\.txt" "" ${list_var} "${${list_var}}")
String(REPLACE "/" "" ${list_var} "${${list_var}}")
EndMacro (GetListOfSubModules list_var)