Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-18 13:18:17 +0400
committerMark Pulford <mark@kyne.com.au>2012-03-04 12:24:35 +0400
commit90e08aa69d23df8c2eb3e231d57a46281d330f03 (patch)
treedf7a5b05d3371be6baf3a16394d263a61d68fd67
parent0c6f2e488e17528ae42481d09879fd36551000e9 (diff)
Add CMake option to toggle DISABLE_CJSON_GLOBAL
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18d6b97..3768fc4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,7 @@
project(lua-cjson C)
cmake_minimum_required(VERSION 2.6)
+option(DISABLE_CJSON_GLOBAL "Disable global registration of the 'cjson' module table")
option(USE_INTERNAL_DTOA "Use internal strtod() / dtoa code for performance")
option(MULTIPLE_THREADS
"Build internal dtoa with support for multi-threaded applications - recommended" ON)
@@ -19,6 +20,10 @@ endif()
find_package(Lua51 REQUIRED)
include_directories(${LUA_INCLUDE_DIR})
+if(DISABLE_CJSON_GLOBAL)
+ add_definitions(-DDISABLE_CJSON_GLOBAL)
+endif()
+
if(NOT USE_INTERNAL_DTOA)
# Use libc number conversion routines (strtod(), sprintf())
set(FPCONV_SOURCES fpconv.c)