From 4a44529579e498a420ee2fe6a35082febe42e2ad Mon Sep 17 00:00:00 2001 From: William Hua Date: Fri, 31 Jan 2014 23:13:33 -0500 Subject: Fix CMake errors. (bzr r3608.4.21) --- unity-shared/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'unity-shared') diff --git a/unity-shared/CMakeLists.txt b/unity-shared/CMakeLists.txt index 2927dff2b..a587dfb87 100644 --- a/unity-shared/CMakeLists.txt +++ b/unity-shared/CMakeLists.txt @@ -102,13 +102,20 @@ if (ENABLE_X_SUPPORT) ) find_package (PkgConfig) + pkg_check_modules (COMPIZ REQUIRED compiz) pkg_check_modules (COMPIZ_OPENGL REQUIRED compiz-opengl) add_library (unity-shared-compiz STATIC ${UNITY_SHARED_COMPIZ_SOURCES}) # This makes linker to include library dir in RUNPATH + find_library (COMPIZ_LIB compiz_core ${COMPIZ_LIBDIR}) find_library (COMPIZ_OPENGL_LIB opengl ${COMPIZ_OPENGL_LIBDIR}) - target_link_libraries (unity-shared-compiz ${LIBS} ${COMPIZ_OPENGL_LIB} ${COMPIZ_OPENGL_LDFLAGS}) + target_link_libraries (unity-shared-compiz + ${LIBS} + ${COMPIZ_LIB} + ${COMPIZ_LDFLAGS} + ${COMPIZ_OPENGL_LIB} + ${COMPIZ_OPENGL_LDFLAGS}) add_dependencies (unity-shared-compiz unity-shared) # bamf application manager -- cgit v1.2.3