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 3768fc4..c18381f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +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(ENABLE_CJSON_GLOBAL "Register cjson module table as a global variable - not recommended") 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) @@ -20,8 +20,8 @@ endif() find_package(Lua51 REQUIRED) include_directories(${LUA_INCLUDE_DIR}) -if(DISABLE_CJSON_GLOBAL) - add_definitions(-DDISABLE_CJSON_GLOBAL) +if(ENABLE_CJSON_GLOBAL) + add_definitions(-DENABLE_CJSON_GLOBAL) endif() if(NOT USE_INTERNAL_DTOA) |