CMAKE_CURRENT_LIST_DIR not working/understood ?

Hello,

I have a CMakeLists.txt in DirA, calling a .cmake in DirB.
When I ask for the value of CMAKE_CURRENT_LIST_DIR in the .cmake script, I expect it points to DirB. But its value is DirA.

According @brad.king , is it not supposed to return Dir B ?
https://gitlab.kitware.com/cmake/cmake/-/issues/18512

If it’s a function you need CMAKE_CURRENT_FUNCTION_LIST_DIR

Thank you !