The answer may well depend on what pocket door object you are using.
I'd be guessing you need to set a 0 (zero) reveal depth so the frame sits flush with the face of the wall and then specify your frame depth to be the same as the wall thickness.
Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11