I have a Developer ID certificate and related private key. But I cannot use them from the VS2022 CMake SSH session because the login keychain is not unlocked automatically for SSH sessions.
To unlock it I need to issue the command:
security unlock-keychain -p password
How can get this to be issued by the CMake session please?
if (APPLE)
do something here?
endif()
The problem is that isn’t quite ideal - is it possible can I set up a “PRE_INSTALL” target so this gets run just prior to install rather than at the end of the build.