aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
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)
7cmake_minimum_required(VERSION 2.6) 7cmake_minimum_required(VERSION 2.6)
8 8
9option(ENABLE_CJSON_GLOBAL "Register cjson module table as a global variable - not recommended") 9option(ENABLE_CJSON_GLOBAL "Register cjson module table as a global variable - not recommended")
10option(USE_INTERNAL_DTOA "Use internal strtod() / dtoa code for performance") 10option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance")
11option(MULTIPLE_THREADS 11option(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)
25endif() 25endif()
26 26
27if(NOT USE_INTERNAL_DTOA) 27if(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)
30else() 30else()
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)