diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c18381f..5de35db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -7,7 +7,7 @@ project(lua-cjson C) | |||
7 | cmake_minimum_required(VERSION 2.6) | 7 | cmake_minimum_required(VERSION 2.6) |
8 | 8 | ||
9 | option(ENABLE_CJSON_GLOBAL "Register cjson module table as a global variable - not recommended") | 9 | option(ENABLE_CJSON_GLOBAL "Register cjson module table as a global variable - not recommended") |
10 | option(USE_INTERNAL_DTOA "Use internal strtod() / dtoa code for performance") | 10 | option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance") |
11 | option(MULTIPLE_THREADS | 11 | option(MULTIPLE_THREADS |
12 | "Build internal dtoa with support for multi-threaded applications - recommended" ON) | 12 | "Build internal dtoa with support for multi-threaded applications - recommended" ON) |
13 | 13 | ||
@@ -24,12 +24,12 @@ if(ENABLE_CJSON_GLOBAL) | |||
24 | add_definitions(-DENABLE_CJSON_GLOBAL) | 24 | add_definitions(-DENABLE_CJSON_GLOBAL) |
25 | endif() | 25 | endif() |
26 | 26 | ||
27 | if(NOT USE_INTERNAL_DTOA) | 27 | if(NOT USE_INTERNAL_FPCONV) |
28 | # Use libc number conversion routines (strtod(), sprintf()) | 28 | # Use libc number conversion routines (strtod(), sprintf()) |
29 | set(FPCONV_SOURCES fpconv.c) | 29 | set(FPCONV_SOURCES fpconv.c) |
30 | else() | 30 | else() |
31 | # Use internal number conversion routines | 31 | # Use internal number conversion routines |
32 | add_definitions(-DUSE_INTERNAL_DTOA) | 32 | add_definitions(-DUSE_INTERNAL_FPCONV) |
33 | set(FPCONV_SOURCES g_fmt.c dtoa.c) | 33 | set(FPCONV_SOURCES g_fmt.c dtoa.c) |
34 | 34 | ||
35 | include(TestBigEndian) | 35 | include(TestBigEndian) |