1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00
openwrt-packages/libs/libupm
Eneas U de Queiroz b17b11939e 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>
2018-08-07 10:31:54 -03:00
..
patches libupm: add fixes for 2 sensors 2015-10-20 15:59:25 +02:00
Makefile libupm: don't set SWIG_DIR, force python 2.7 2018-08-07 10:31:54 -03:00