mirror of https://github.com/encounter/SDL.git
cmake: make sure check_* uses 2 different variables in CheckX11
This commit is contained in:
parent
a9524ffa9d
commit
81d3266766
|
@ -457,13 +457,13 @@ macro(CheckX11)
|
||||||
set(SDL_X11_SHARED OFF)
|
set(SDL_X11_SHARED OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_symbol_exists(shmat "sys/shm.h" HAVE_SHMAT)
|
check_symbol_exists(shmat "sys/shm.h" HAVE_SHMAT_IN_LIBC)
|
||||||
if(NOT HAVE_SHMAT)
|
if(NOT HAVE_SHMAT_IN_LIBC)
|
||||||
check_library_exists(ipc shmat "" HAVE_SHMAT)
|
check_library_exists(ipc shmat "" HAVE_SHMAT_IN_LIBIPC)
|
||||||
if(HAVE_SHMAT)
|
if(HAVE_SHMAT_IN_LIBIPC)
|
||||||
list(APPEND EXTRA_LIBS ipc)
|
list(APPEND EXTRA_LIBS ipc)
|
||||||
endif()
|
endif()
|
||||||
if(NOT HAVE_SHMAT)
|
if(NOT HAVE_SHMAT_IN_LIBIPC)
|
||||||
list(APPEND EXTRA_CFLAGS "-DNO_SHARED_MEMORY")
|
list(APPEND EXTRA_CFLAGS "-DNO_SHARED_MEMORY")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue