on xenial help sign in
include(FindPkgConfig) only once, in the root CMakeLists.txt

In order to fix cross compilation Patch by Saviq

commit0bfe3cba38b1811f85a0cf2a54c5a2087d90dc74 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 3 Feb 2015, 13:17 (12 years ago) parent957d574
6 files changed−12
plugins/LightDM/CMakeLists.txt−2 plugins/Lights/CMakeLists.txt−2 plugins/Powerd/CMakeLists.txt−2 plugins/Unity/Launcher/CMakeLists.txt−1 plugins/Unity/Session/CMakeLists.txt−2 plugins/Utils/CMakeLists.txt−3
plugins/LightDM/CMakeLists.txt−2
@@ -1,5 +1,3 @@
1−# Dependencies
2−include(FindPkgConfig)
31pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)
42# TODO: Once we split out a separate greeter process, uncomment these lines
53#pkg_check_modules(LIBLIGHTDM REQUIRED liblightdm-qt5-2)
plugins/Lights/CMakeLists.txt−2
@@ -1,5 +1,3 @@
1−include(FindPkgConfig)
2−
31pkg_check_modules(ANDROID_HEADERS REQUIRED android-headers)
42pkg_check_modules(ANDROID_HARDWARE REQUIRED libhardware)
53
plugins/Powerd/CMakeLists.txt−2
@@ -1,5 +1,3 @@
1−include(FindPkgConfig)
2−
31pkg_search_module(GIO REQUIRED gio-2.0)
42
53include_directories(
plugins/Unity/Launcher/CMakeLists.txt−1
@@ -1,4 +1,3 @@
1−include(FindPkgConfig)
21pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=5)
32pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=5)
43pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
plugins/Unity/Session/CMakeLists.txt−2
@@ -1,5 +1,3 @@
1−include(FindPkgConfig)
2−
31pkg_search_module(GIO REQUIRED gio-2.0)
42
53include_directories(
plugins/Utils/CMakeLists.txt−3
@@ -1,6 +1,3 @@
1−# Dependencies
2−include(FindPkgConfig)
3−
41pkg_search_module(GIO REQUIRED gio-2.0)
52
63include_directories(