mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 21:11:39 +00:00
Changed: Use shared libs for X11 because API doesn't change
This commit is contained in:
parent
ce663a15d2
commit
77d60be443
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