CMake: Fix regression searching for localtime_r on Linux (fixes #2276)

This commit is contained in:
Vicki Pfau 2021-08-13 22:38:59 -07:00
parent 9ef2c88ed3
commit 2fec366076
1 changed files with 2 additions and 0 deletions

View File

@ -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)