all repos — mgba @ e742fe25d00d314a9e856f0961a764fb2fc12233

mGBA Game Boy Advance Emulator

Util: Don't detect strtof_l on Linux; glibc doesn't actually implement it, but it's still detected
Jeffrey Pfau jeffrey@endrift.com
Sat, 21 Feb 2015 09:53:17 -0800
commit

e742fe25d00d314a9e856f0961a764fb2fc12233

parent

8a90066965a5d256fb6a7ba04ab98246f83a5b15

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -136,7 +136,12 @@

include(CheckFunctionExists) check_function_exists(strndup HAVE_STRNDUP) check_function_exists(snprintf_l HAVE_SNPRINTF_L) -check_function_exists(strtof_l HAVE_STRTOF_L) +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + # The strtof_l on Linux not actually exposed nor actually strtof_l + set(HAVE_STRTOF_L OFF) +else() + check_function_exists(strtof_l HAVE_STRTOF_L) +endif() check_function_exists(newlocale HAVE_NEWLOCALE) check_function_exists(freelocale HAVE_FREELOCALE) check_function_exists(uselocale HAVE_USELOCALE)