Per the excellent Jan Kaluza:
In your .uproject file, in the EngineAssociation field where it will use either a registered string for a binary engine version or the obscure GUID you get when compiling locally, you can also put a relative path to the engine root. Handy when you distribute engine and project in the same version control repo.