Check early for PythonInterp 2 in CMakeLists.txt
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 12 Mar 2018 21:56:57 +0000 (14:56 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 19 Apr 2018 08:54:32 +0000 (04:54 -0400)
commit34a000e41c6924b9fe0aab1ab2dcee989be9b243
tree8c5060d346c8be2eb639a0df4b6ca393838bfb53
parent23c702dc549dcab1fa5fb6c798b686656f92bc9c
Check early for PythonInterp 2 in CMakeLists.txt

SPIRV-Tools looks for a Python without specifying the version, which
causes PYTHON_EXECUTABLE to reference a Python 3 executable even if
later code needs PythonInterp 2.

Since VK-GL-CTS currently depends on Python 2, this patch performs
that check early, which will be reused by SPIRV-Tools (i.e. it will
accept python2 found in the system instead of possibly taking a
python3).

Component: Framework

Change-Id: I588c1a1cbe06b95e7fda5db6a1a9f9d046dbda90
CMakeLists.txt