Move strtod_l check to CMake since it's very system-specific

This commit is contained in:
Victor Zverovich
2019-06-23 17:10:57 -07:00
parent 29ef7d31e4
commit d5d5865615
3 changed files with 14 additions and 6 deletions
+3
View File
@@ -118,6 +118,9 @@ if (HAVE_OPEN)
if (FMT_PEDANTIC)
target_compile_options(posix-mock-test PRIVATE ${PEDANTIC_COMPILE_FLAGS})
endif ()
if (HAVE_STRTOD_L)
target_compile_definitions(posix-mock-test PRIVATE FMT_LOCALE)
endif ()
add_test(NAME posix-mock-test COMMAND posix-mock-test)
add_fmt_test(posix-test)
endif ()