diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-12-16 16:32:00 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-12-16 16:32:00 +0100 |
| commit | 7de75ab84b7b419158243fcc58da829b19bd2c0e (patch) | |
| tree | c61abfe4ca472a41c3577834a244e001895c4471 /unity-shared/CMakeLists.txt | |
| parent | fc6b4714eb83781b1fb46ebda08ab6b8c6504b85 (diff) | |
UnityShared: use find_library to get the compiz opengl lib instead of simple LDFLAGS, to make linker to define proper RUNPATH
(bzr r3566.5.64)
Diffstat (limited to 'unity-shared/CMakeLists.txt')
| -rw-r--r-- | unity-shared/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/unity-shared/CMakeLists.txt b/unity-shared/CMakeLists.txt index 603354143..63735654c 100644 --- a/unity-shared/CMakeLists.txt +++ b/unity-shared/CMakeLists.txt @@ -100,9 +100,13 @@ if (ENABLE_X_SUPPORT) ) find_package (PkgConfig) - pkg_check_modules (COMPIZ_OPENGL REQUIRED "compiz-opengl") + pkg_check_modules (COMPIZ_OPENGL REQUIRED compiz-opengl) + add_library (unity-shared-compiz STATIC ${UNITY_SHARED_COMPIZ_SOURCES}) - target_link_libraries (unity-shared-compiz ${LIBS} ${COMPIZ_OPENGL_LDFLAGS}) + + # This makes linker to include library dir in RUNPATH + find_library (COMPIZ_OPENGL_LIB opengl ${COMPIZ_OPENGL_LIBDIR}) + target_link_libraries (unity-shared-compiz ${LIBS} ${COMPIZ_OPENGL_LIB} ${COMPIZ_OPENGL_LDFLAGS}) add_dependencies (unity-shared-compiz unity-shared) # bamf application manager |
