Fix for adding sensor fusion folder for RV sensor 26/33826/1
authorRamasamy <ram.kannan@samsung.com>
Thu, 15 Jan 2015 11:24:20 +0000 (16:54 +0530)
committerRamasamy <ram.kannan@samsung.com>
Thu, 15 Jan 2015 11:24:25 +0000 (16:54 +0530)
- Sensor Fusion folder is not added in current case if RV sensor
is added without orientation sensor. This is fixed in the code so
rotation vector sensor can be added without orientation sensor.

Change-Id: I2658cef8925c55618c619dc2da7104cfbab61653

src/CMakeLists.txt
src/rotation_vector/CMakeLists.txt

index fe8be1a..199346f 100755 (executable)
@@ -38,6 +38,10 @@ IF("${ORIENTATION}" STREQUAL "ON")
 set(SENSOR_FUSION_ENABLE "1")
 set(ORIENTATION_ENABLE "1")
 ENDIF()
+IF("${RV}" STREQUAL "ON")
+set(SENSOR_FUSION_ENABLE "1")
+set(RV_ENABLE "1")
+ENDIF()
 IF("${GRAVITY}" STREQUAL "ON")
 set(SENSOR_FUSION_ENABLE "1")
 set(ORIENTATION_ENABLE "1")
index 7a527a7..47ee465 100644 (file)
@@ -1,3 +1,3 @@
-IF("${RV}" STREQUAL "ON")
+IF("${RV_ENABLE}" STREQUAL "ON")
 add_subdirectory(rv)
 ENDIF()