Closed edsavage closed 1 month ago
Thanks Ed this change will be helpful. One question, are the new cmake targets invoked automatically or do they have to be called explicitly when building debug on macOS?
One question, are the new cmake targets invoked automatically or do they have to be called explicitly when building debug on macOS?
The new targets need to be called manually @davidkyle - something like this (for pytorch_inference
)
cmake -B cmake-build-relwithdebinfo
cmake --build cmake-build-relwithdebinfo -j 8 -t install codesign_pytorch_inference
This PR adds the
codesign_autodetect
andcodesign_pytorch_inference
targets to CMake. These targets add theget-task-allow
entitlement to the respective executables, which is necessary to allow debugging with e.g.Instruments
onmacOS
The
codesign
targets are only applicable onmacOS
. Attempting to run them on any other platform will fail with an explanatory message.Labelling as a
>non-issue
as this is purely a development aid.