swigjava: Added SWIGJAVA define to java module build

SWIGJAVA is defined for the swig interface file processing but is not
defined for the sensor library source build.  There are multiple sensors
that appear to rely solely on SWIGJAVA - these are not building
correctly.  Adding SWIGJAVA define for the java module src build.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2017-02-07 15:37:46 -08:00
parent 4342b880b9
commit 7a5c8a6cb3

View File

@ -310,7 +310,7 @@ macro(upm_swig_java)
${DEPEND_DIRS} ${DEPEND_DIRS}
) )
set_target_properties (javaupm_${libname} PROPERTIES set_target_properties (javaupm_${libname} PROPERTIES
COMPILE_FLAGS "-fpermissive -DJAVACALLBACK" COMPILE_FLAGS "-fpermissive -DJAVACALLBACK -DSWIGJAVA"
PREFIX "lib" PREFIX "lib"
SUFFIX ".so" SUFFIX ".so"
) )