string(CONFIGURE) does not evaluate CMAKE_CURRENT_LIST_LINE
apperently cmMakefile::ConfigureString is not passing filename into lower calls, what makes CMAKE_CURRENT_LIST_LINE evaluate to empty string in its context. I believe it should evaluate to line where string() command is called. MR with fix and tests is coming.
I am not sure about one thing, does configure_file needs its own tests for this fix?