You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: CMakeLists.txt
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -23,16 +23,21 @@ set ( LUA_MAXINPUT 512 CACHE NUMBER "Is the maximum length for an input line in
23
23
24
24
#2DO: LUAI_* and LUAL_* settings, for now defaults are used.
25
25
26
+
set ( LUA_DIRSEP "/" )
27
+
set ( LUA_MODULE_SUFFIX ${CMAKE_SHARED_MODULE_SUFFIX} )
28
+
set ( LUA_ROOT ${CMAKE_INSTALL_PREFIX}CACHESTRING"Destination from which modules will be resolved. See INSTALL_LMOD and INSTALL_CMOD.")
29
+
set ( LUA_LDIR ${INSTALL_LMOD} )
30
+
set ( LUA_CDIR ${INSTALL_CMOD} )
31
+
26
32
if ( WIN32ANDNOTCYGWIN )
27
33
# Windows systems
28
34
option ( LUA_WIN "Windows specific build."ON )
29
35
option ( LUA_BUILD_AS_DLL "Build Lua library as Dll."ON )
30
36
# Paths (Double escapes needed)
31
37
set ( LUA_DIRSEP "\\\\" )
32
-
set ( LUA_LDIR "!\\\\lua\\\\"CACHESTRING"Pure Lua module location." )
33
-
set ( LUA_CDIR "!\\\\"CACHESTRING"Binary Lua module location." )
34
-
set ( LUA_PATH_DEFAULT ".\\\\?.lua;${LUA_LDIR}?.lua;${LUA_LDIR}?\\\\init.lua;${LUA_CDIR}?.lua;${LUA_CDIR}?\\\\init.lua" )
35
-
set ( LUA_CPATH_DEFAULT ".\\\\?${CMAKE_SHARED_MODULE_SUFFIX};${LUA_CDIR}?${CMAKE_SHARED_MODULE_SUFFIX};${LUA_CDIR}loadall${CMAKE_SHARED_MODULE_SUFFIX}" )
0 commit comments