Undefined reference to 'GPhysXSDK'

I’m trying to fix the TankMovementComponent.cpp implemented in an external project on GitHub. When I compile through the UnrealEngine, it fails with the message pointing to where I use this variable:

Undefined reference to ‘GPhysXSDK’

How can I get access to this global variable? It seem to have worked with previous Engine versions.

I managed to solve it by adding command:

SetupModulePhysicsSupport(Target);

to the bottom of the constructor in my CustomProject.Build.cs script. I’m not sure is this the best solution nor what else this might do, but it works. Any suggestions are very welcome!