[cmake] use CMAKE_CURRENT_LIST_FILE instead of CMAKE_CURRENT_LIST_DIR in order to support old cmake versions