Fix search for Python 2 with CMake
authorOliver Lee <oliverzlee@gmail.com>
Fri, 13 Feb 2015 16:14:00 +0000 (17:14 +0100)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 13 Feb 2015 16:42:46 +0000 (18:42 +0200)
commit02bd49bc9379e3062a718b1c16d6e2c23ea2f1a0
tree25f926d12260b16196bb971121160aa1684c1bad
parentd8d3b75e2e3b348d016f48cebc1be764061975d2
Fix search for Python 2 with CMake

Do not assume that Python has already been found by CMake. Fix value of
CMake variable PYTHON_EXECUTABLE if Python 3 was found. Change minimum
supported Python version to 2.6.

This fixes a bug introduced by this commit:
d8d3b75e2e3b348d016f48cebc1be764061975d2
extra/FindNanopb.cmake