From 84a6c2ac9b663d455ba7137f28031c80ae652c47 Mon Sep 17 00:00:00 2001 From: Ramasamy Date: Tue, 24 Feb 2015 11:54:06 +0530 Subject: [PATCH] Cleaning CMake files for unused package dependencies - Removing all unused package dependencies in CMakelist files - Sometimes build hangs while searching for packages that are added in each CMake files. Change-Id: Iff099501d1e4a7c03c74a34ce8f800490bbdff57 --- src/rotation_vector/geomagnetic_rv/CMakeLists.txt | 3 --- src/sensor_fusion/CMakeLists.txt | 3 --- src/server/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/rotation_vector/geomagnetic_rv/CMakeLists.txt b/src/rotation_vector/geomagnetic_rv/CMakeLists.txt index 36430ee..6b44750 100755 --- a/src/rotation_vector/geomagnetic_rv/CMakeLists.txt +++ b/src/rotation_vector/geomagnetic_rv/CMakeLists.txt @@ -7,9 +7,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_SOURCE_DIR}/src/libsensord) include_directories(${CMAKE_SOURCE_DIR}/src/sensor_fusion) -INCLUDE(FindPkgConfig) -PKG_CHECK_MODULES(geomagnetic_rv_pkgs REQUIRED vconf) - FOREACH(flag ${geomagnetic_rv_pkgs_LDFLAGS}) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") ENDFOREACH(flag) diff --git a/src/sensor_fusion/CMakeLists.txt b/src/sensor_fusion/CMakeLists.txt index c38f410..627d6ec 100755 --- a/src/sensor_fusion/CMakeLists.txt +++ b/src/sensor_fusion/CMakeLists.txt @@ -8,9 +8,6 @@ SET(VERSION 1.0) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_SOURCE_DIR}/src/libsensord) -include(FindPkgConfig) -pkg_check_modules(rpkgs REQUIRED vconf) - set(PROJECT_MAJOR_VERSION "0") set(PROJECT_MINOR_VERSION "0") set(PROJECT_RELEASE_VERSION "1") diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt index a404c76..10f737d 100755 --- a/src/server/CMakeLists.txt +++ b/src/server/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6) project(sensord CXX) INCLUDE(FindPkgConfig) -PKG_CHECK_MODULES(server_pkgs REQUIRED vconf glib-2.0 gio-2.0 dlog libsystemd-daemon) +PKG_CHECK_MODULES(server_pkgs REQUIRED glib-2.0 gio-2.0 dlog libsystemd-daemon) FOREACH(flag ${server_pkgs_LDFLAGS}) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9329972..e81b9c0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,7 +6,7 @@ SET(EXEC_PREFIX "\${prefix}") SET(VERSION 1.0) INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED glib-2.0 dlog) +pkg_check_modules(pkgs REQUIRED glib-2.0) add_definitions(${rpkgs_CFLAGS}) add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}") -- 2.7.4