Thanks for the report
For reference, the problem has been discussed in the this post error: Failed to obtain launcher executable name !
While the problem has been addressed in recent version of Slicer, a workaround is also discussed in https://github.com/Slicer/Slicer/issues/4787#issuecomment-606220350
Now, is there a specific reason you are trying to build version 4.10.2 from source ? If not, I suggest you build the latest version.