Fixing issue related to adding rv sensor 69/33969/1
authorRamasamy <ram.kannan@samsung.com>
Mon, 19 Jan 2015 09:40:51 +0000 (15:10 +0530)
committerRamasamy <ram.kannan@samsung.com>
Mon, 19 Jan 2015 09:41:04 +0000 (15:11 +0530)
- RV_Enable CMake variable does not have global scope
- Using RV variable from spec file.

Change-Id: I9c1a2149d67cd76ed38797ca528040c51cfa3710

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

index 199346f..60b93e3 100755 (executable)
@@ -40,7 +40,6 @@ 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")
index 47ee465..7a527a7 100644 (file)
@@ -1,3 +1,3 @@
-IF("${RV_ENABLE}" STREQUAL "ON")
+IF("${RV}" STREQUAL "ON")
 add_subdirectory(rv)
 ENDIF()