aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-12-29 23:53:11 +1030
committerMark Pulford <mark@kyne.com.au>2011-12-29 23:53:11 +1030
commit6cc88e3ac5275868e168acaf60203563f131355b (patch)
treec574da2dff2c4e95cc6d39d6de2393b64eedf4fc /CMakeLists.txt
parent155393d5bd801ce5dbd76020facecd9270679e94 (diff)
downloadlua-cjson-6cc88e3ac5275868e168acaf60203563f131355b.tar.gz
lua-cjson-6cc88e3ac5275868e168acaf60203563f131355b.tar.bz2
lua-cjson-6cc88e3ac5275868e168acaf60203563f131355b.zip
Remove POSIX locale workaround
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 0 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bfb28cc..349342e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,16 +11,6 @@ set(CMAKE_BUILD_TYPE Release)
11find_package(Lua51 REQUIRED) 11find_package(Lua51 REQUIRED)
12include_directories(${LUA_INCLUDE_DIR}) 12include_directories(${LUA_INCLUDE_DIR})
13 13
14# Use thread-safe POSIX.1-2008 uselocale() where available, otherwise
15# fall back to ANSI C setlocale().
16include(CheckFunctionExists)
17CHECK_FUNCTION_EXISTS(uselocale HAVE_USELOCALE)
18if(HAVE_USELOCALE)
19 add_definitions(-DUSE_POSIX_USELOCALE)
20else()
21 add_definitions(-DUSE_POSIX_SETLOCALE)
22endif()
23
24# Handle platforms missing isinf() macro (Eg, some Solaris systems). 14# Handle platforms missing isinf() macro (Eg, some Solaris systems).
25include(CheckSymbolExists) 15include(CheckSymbolExists)
26CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF) 16CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF)