mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-12 20:24:47 +00:00
Changed: Use shared libs for X11 because API doesn't change
This commit is contained in:
parent
3f3c1549d8
commit
0a7499ef02
1 changed files with 9 additions and 6 deletions
|
@ -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…
Reference in a new issue