much better. suggested by David.

svn path=/trunk/KDE/kdebase/workspace/; revision=663183
This commit is contained in:
Harri Porten 2007-05-10 12:49:57 +00:00
parent f18bd0b02d
commit f15f97785b
2 changed files with 8 additions and 6 deletions

View file

@ -68,9 +68,10 @@ target_link_libraries(kdeinit_kwin ${KDE4_KDEUI_LIBS} kdecorations kwineffects
if(OPENGL_FOUND)
target_link_libraries(kdeinit_kwin ${OPENGL_gl_LIBRARY})
# -ldl used by OpenGL code
if(NOT CMAKE_SYSTEM_NAME MATCHES BSD)
target_link_libraries(kdeinit_kwin -ldl)
endif(NOT CMAKE_SYSTEM_NAME MATCHES BSD)
find_library(DL_LIBRARY dl)
if (DL_LIBRARY)
target_link_libraries(kdeinit_kwin ${DL_LIBRARY})
endif(DL_LIBRARY)
endif(OPENGL_FOUND)
if (X11_Xrandr_FOUND)
target_link_libraries(kdeinit_kwin ${X11_Xrandr_LIB})

View file

@ -40,9 +40,10 @@ install(TARGETS kwineffects DESTINATION ${LIB_INSTALL_DIR})
if(OPENGL_FOUND)
target_link_libraries(kwineffects ${OPENGL_gl_LIBRARY})
# -ldl used by OpenGL code
if(NOT CMAKE_SYSTEM_NAME MATCHES BSD)
target_link_libraries(kwineffects -ldl)
endif(NOT CMAKE_SYSTEM_NAME MATCHES BSD)
find_library(DL_LIBRARY dl)
if (DL_LIBRARY)
target_link_libraries(kwineffects ${DL_LIBRARY})
endif(DL_LIBRARY)
endif(OPENGL_FOUND)
install( FILES kwinglobals.h kwineffects.h kwinglutils.h kwinglutils_funcs.h DESTINATION ${INCLUDE_INSTALL_DIR})