Skip to content

Commit

Permalink
Replace NUMBER with STRING to reduce CMake errors
Browse files Browse the repository at this point in the history
CMake doesn't accept NUMBER as a parameter to CACHE
  • Loading branch information
jameskr97 committed May 20, 2020
1 parent 6f41a8e commit 899a428
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions extern/LuaJIT-2.1.0-beta3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ set(LUA_INIT "LUA_INIT" CACHE STRING "Environment variable for initial script.")

option(LUA_ANSI "Use only ansi features." OFF)
option(LUA_USE_RELATIVE_LOADLIB "Use modified loadlib.c with support for relative paths on posix systems." ON)
set(LUA_IDSIZE 60 CACHE NUMBER "gives the maximum size for the description of the source.")
set(LUA_IDSIZE 60 CACHE STRING "gives the maximum size for the description of the source.")
set(LUA_PROMPT "> " CACHE STRING "Is the default prompt used by stand-alone Lua.")
set(LUA_PROMPT2 ">> " CACHE STRING "Is the default continuation prompt used by stand-alone Lua.")
set(LUA_MAXINPUT 512 CACHE NUMBER "Is the maximum length for an input line in the stand-alone interpreter.")
set(LUA_MAXINPUT 512 CACHE STRING "Is the maximum length for an input line in the stand-alone interpreter.")

# Version
set(MAJVER 2)
Expand All @@ -65,11 +65,11 @@ option(LUAJIT_CPU_SSE2 "Disable SSE2." OFF)
option(LUAJIT_CPU_NOCMOV "Disable NOCMOV." OFF)

# Tunable variables
set(LUAI_MAXSTACK 65500 CACHE NUMBER "Max. # of stack slots for a thread (<64K).")
set(LUAI_MAXCSTACK 8000 CACHE NUMBER "Max. # of stack slots for a C func (<10K).")
set(LUAI_GCPAUSE 200 CACHE NUMBER "Pause GC until memory is at 200%.")
set(LUAI_GCMUL 200 CACHE NUMBER "Run GC at 200% of allocation speed.")
set(LUA_MAXCAPTURES 32 CACHE NUMBER "Max. pattern captures.")
set(LUAI_MAXSTACK 65500 CACHE STRING "Max. # of stack slots for a thread (<64K).")
set(LUAI_MAXCSTACK 8000 CACHE STRING "Max. # of stack slots for a C func (<10K).")
set(LUAI_GCPAUSE 200 CACHE STRING "Pause GC until memory is at 200%.")
set(LUAI_GCMUL 200 CACHE STRING "Run GC at 200% of allocation speed.")
set(LUA_MAXCAPTURES 32 CACHE STRING "Max. pattern captures.")

## SETUP
set(LUA_DIRSEP "/")
Expand Down

0 comments on commit 899a428

Please sign in to comment.