diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-29 23:53:11 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-29 23:53:11 +1030 |
commit | 6cc88e3ac5275868e168acaf60203563f131355b (patch) | |
tree | c574da2dff2c4e95cc6d39d6de2393b64eedf4fc /CMakeLists.txt | |
parent | 155393d5bd801ce5dbd76020facecd9270679e94 (diff) | |
download | lua-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.txt | 10 |
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) | |||
11 | find_package(Lua51 REQUIRED) | 11 | find_package(Lua51 REQUIRED) |
12 | include_directories(${LUA_INCLUDE_DIR}) | 12 | include_directories(${LUA_INCLUDE_DIR}) |
13 | 13 | ||
14 | # Use thread-safe POSIX.1-2008 uselocale() where available, otherwise | ||
15 | # fall back to ANSI C setlocale(). | ||
16 | include(CheckFunctionExists) | ||
17 | CHECK_FUNCTION_EXISTS(uselocale HAVE_USELOCALE) | ||
18 | if(HAVE_USELOCALE) | ||
19 | add_definitions(-DUSE_POSIX_USELOCALE) | ||
20 | else() | ||
21 | add_definitions(-DUSE_POSIX_SETLOCALE) | ||
22 | endif() | ||
23 | |||
24 | # Handle platforms missing isinf() macro (Eg, some Solaris systems). | 14 | # Handle platforms missing isinf() macro (Eg, some Solaris systems). |
25 | include(CheckSymbolExists) | 15 | include(CheckSymbolExists) |
26 | CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF) | 16 | CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF) |