libupm: don't set SWIG_DIR, force python 2.7
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Tue, 7 Aug 2018 11:59:12 +0000 (08:59 -0300)
committerEneas U de Queiroz <cote2004-github@yahoo.com>
Tue, 7 Aug 2018 13:31:54 +0000 (10:31 -0300)
commitb17b11939e55aab2b167b42ce13ff2f4059546e9
tree319e7fe664ef3734b12f2111b7e9d95dbd73b074
parent30694e641e43ff851b2a4f2775de52882e96f3cd
libupm: don't set SWIG_DIR, force python 2.7

CMake 3.0.12 uses SWIG_DIR to set SWIG_LIB, used as the library
install location, which defaults to
$(STAGING_HOSTPKG)/share/sig/(SWIGVERSION).  If it is set, then the
original installed swig library directory is ignored, and compilation
fails:
[  0%] Swig source
:1: Error: Unable to find 'swig.swg'
:3: Error: Unable to find 'python.swg'

Instead of setting it manually, let the default be used, which works
well.

Also, cmake picks up python3, while package wants 2.7, so we add
-DPython_ADDITIONAL_VERSIONS=2.7 to force use of 2.7, not 3.x.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
libs/libupm/Makefile