it seems when you use a global variable in the file specifications of a project like :
<Unit filename="${#cmakebuild}/foo/bar/test.cpp" />
then the global variable does not get substituted, doing similar thing for the include directories does work, there substitution does occur.