From 7a5c8a6cb359b884d0567bb27a7664e4f8886ed6 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Tue, 7 Feb 2017 15:37:46 -0800 Subject: [PATCH] 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 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 38ac427d..2395b2b3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -310,7 +310,7 @@ macro(upm_swig_java) ${DEPEND_DIRS} ) set_target_properties (javaupm_${libname} PROPERTIES - COMPILE_FLAGS "-fpermissive -DJAVACALLBACK" + COMPILE_FLAGS "-fpermissive -DJAVACALLBACK -DSWIGJAVA" PREFIX "lib" SUFFIX ".so" )