Apple Xcode specify PATH for custom commands
Apple Xcode specify PATH for custom commands

Capture the PATH variable at cmake invoke time and store in the cache.
Use the captured PATH variable for the make based build targets custom_swig and QRenderDoc.
This fixes the problem on Apple Silicon that the Xcode PATH does not include the default homebrew paths (/opt/homebrew/bin /opt/homebrew/sbin)

baldurk/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,baldurk/renderdoc