Changed: Use shared libs for X11 because API doesn't change

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent cbc1acfcd2
commit 4a1f4cd725

@ -5,8 +5,11 @@ IF(NOT WIN32)
FIND_LIBRARY(CARBON NAMES Carbon)
FIND_LIBRARY(COCOA NAMES Cocoa)
ELSE()
SET(OLD_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
SET(CMAKE_FIND_LIBRARY_SUFFIXES .so)
FIND_PACKAGE(X11)
FIND_PACKAGE(XF86VidMode)
SET(CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_CMAKE_FIND_LIBRARY_SUFFIXES})
ENDIF()
ENDIF()
@ -71,12 +74,12 @@ IF(UNIX AND NOT APPLE)
TARGET_LINK_LIBRARIES(${NLDRV_OGL_LIB} ${X11_Xext_LIB})
ENDIF()
# libraries needed to be linked while linking to static X11 libraries
FIND_LIBRARY(XCB_LIBRARY
NAMES xcb
HINTS ${X11_LIB_SEARCH_PATH})
IF(XCB_LIBRARY)
TARGET_LINK_LIBRARIES(${NLDRV_OGL_LIB} ${XCB_LIBRARY})
ENDIF()
# FIND_LIBRARY(XCB_LIBRARY
# NAMES xcb
# HINTS ${X11_LIB_SEARCH_PATH})
# IF(XCB_LIBRARY)
# TARGET_LINK_LIBRARIES(${NLDRV_OGL_LIB} ${XCB_LIBRARY})
# ENDIF()
ENDIF()
IF(WITH_PCH)

Loading…
Cancel
Save