FindPython: CMake can't filter out the Microsoft Store version python
Microsoft releases Microsoft Store version python in recent May 2019 update.
When you run
python in cmd in an updated Windows, a window will pop up and take you to the Microsoft Store version's page.
There are two 0KB file
C:\Users\<user>\AppData\Local\Microsoft\WindowsApps, and this path is added to environment variable
PATH by default.
And when using CMake's find python module
find_package(Python3 REQUIRED), it will find this 0KB python3.exe and raise an issue like
can not find python 3, version is 1.4 something like that.
Can we make some fix to find python module to filter out this invalid python?