diff options
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) |