My latest made changes that are not picked up automatically by cmake, so if you see an error about a missing constant PN_MILLIS_MAX please clean and rebuild to force re-generation of swig code.
I'll take a look at the cmake swig rules and see if I can fix the missing dependency so this happens automatically.