mirror of https://github.com/mgba-emu/mgba.git
CMake: Fix regression searching for localtime_r on Linux (fixes #2276)
This commit is contained in:
parent
9ef2c88ed3
commit
2fec366076
|
@ -321,8 +321,10 @@ find_function(futimens)
|
||||||
find_function(futimes)
|
find_function(futimes)
|
||||||
|
|
||||||
if(ANDROID AND ANDROID_NDK_MAJOR GREATER 13)
|
if(ANDROID AND ANDROID_NDK_MAJOR GREATER 13)
|
||||||
|
find_function(localtime_r)
|
||||||
set(HAVE_STRTOF_L ON)
|
set(HAVE_STRTOF_L ON)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
find_function(localtime_r)
|
||||||
# The strtof_l on Linux not actually exposed nor actually strtof_l
|
# The strtof_l on Linux not actually exposed nor actually strtof_l
|
||||||
set(HAVE_STRTOF_L OFF)
|
set(HAVE_STRTOF_L OFF)
|
||||||
elseif(NOT DEFINED PSP2)
|
elseif(NOT DEFINED PSP2)
|
||||||
|
|
Loading…
Reference in New Issue