diff options
| -rw-r--r-- | unity-shared/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
