mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 09:55:35 +00:00
cmake: make sure check_* uses 2 different variables for clock_gettime
This commit is contained in:
parent
81d3266766
commit
2f9c9b5f80
|
@ -1536,13 +1536,13 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||||
CheckPTHREAD()
|
CheckPTHREAD()
|
||||||
|
|
||||||
if(SDL_CLOCK_GETTIME)
|
if(SDL_CLOCK_GETTIME)
|
||||||
check_library_exists(rt clock_gettime "" FOUND_CLOCK_GETTIME)
|
check_library_exists(rt clock_gettime "" FOUND_CLOCK_GETTIME_LIBRT)
|
||||||
if(FOUND_CLOCK_GETTIME)
|
if(FOUND_CLOCK_GETTIME_LIBRT)
|
||||||
list(APPEND EXTRA_LIBS rt)
|
list(APPEND EXTRA_LIBS rt)
|
||||||
set(HAVE_CLOCK_GETTIME 1)
|
set(HAVE_CLOCK_GETTIME 1)
|
||||||
else()
|
else()
|
||||||
check_library_exists(c clock_gettime "" FOUND_CLOCK_GETTIME)
|
check_library_exists(c clock_gettime "" FOUND_CLOCK_GETTIME_LIBC)
|
||||||
if(FOUND_CLOCK_GETTIME)
|
if(FOUND_CLOCK_GETTIME_LIBC)
|
||||||
set(HAVE_CLOCK_GETTIME 1)
|
set(HAVE_CLOCK_GETTIME 1)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue