mirror of https://github.com/encounter/SDL.git
cmake: avoid use of possible non-available XEXT_LIB
This commit is contained in:
parent
78a3751659
commit
6dcb2868b0
|
@ -484,11 +484,19 @@ macro(CheckX11)
|
||||||
else()
|
else()
|
||||||
set(HAVE_X11_SHARED TRUE)
|
set(HAVE_X11_SHARED TRUE)
|
||||||
endif()
|
endif()
|
||||||
if(HAVE_X11_SHARED AND X11_LIB AND XEXT_LIB)
|
if(X11_LIB)
|
||||||
set(SDL_VIDEO_DRIVER_X11_DYNAMIC "\"${X11_LIB_SONAME}\"")
|
if(HAVE_X11_SHARED)
|
||||||
set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "\"${XEXT_LIB_SONAME}\"")
|
set(SDL_VIDEO_DRIVER_X11_DYNAMIC "\"${X11_LIB_SONAME}\"")
|
||||||
else()
|
else()
|
||||||
list(APPEND EXTRA_LIBS ${X11_LIB} ${XEXT_LIB})
|
list(APPEND EXTRA_LIBS ${X11_LIB})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if(XEXT_LIB)
|
||||||
|
if(HAVE_X11_SHARED)
|
||||||
|
set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "\"${XEXT_LIB_SONAME}\"")
|
||||||
|
else()
|
||||||
|
list(APPEND EXTRA_LIBS ${XEXT_LIB_SONAME})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
list(APPEND EXTRA_LIBS ${X11_LIB} ${XEXT_LIB})
|
list(APPEND EXTRA_LIBS ${X11_LIB} ${XEXT_LIB})
|
||||||
|
|
Loading…
Reference in New Issue