summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Drahos <drahosp@gmail.com>2011-03-15 22:15:45 +0100
committerPeter Drahos <drahosp@gmail.com>2011-03-15 22:15:45 +0100
commit55af5c562cda6b3191f48f73ee2bd6d2aad85ea1 (patch)
treeb0ddf305b32592b847a267cb843bfc3e2d6595eb
parent33be30b7455b61c0dcbd7bea3a02791aa722fbb7 (diff)
downloadlua-55af5c562cda6b3191f48f73ee2bd6d2aad85ea1.tar.gz
Tested on MinGW and Cygwin
-rw-r--r--CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e05b0bf..c7f34c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,12 +27,12 @@ if ( WIN32 AND NOT CYGWIN )
# Windows systems
option ( LUA_WIN "Windows specific build." ON )
option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ON )
- # Paths
- set ( LUA_DIRSEP "\\" )
- set ( LUA_LDIR "!\\lua\\" CACHE STRING "Pure Lua module location." )
- set ( LUA_CDIR "!\\" CACHE STRING "Binary Lua module location." )
- set ( LUA_PATH_DEFAULT ".\\?.lua;${LUA_LDIR}?.lua;${LUA_LDIR}?\\init.lua;${LUA_CDIR}?.lua;${LUA_CDIR}?\\init.lua" )
- set ( LUA_CPATH_DEFAULT ".\\?${CMAKE_SHARED_MODULE_SUFFIX};${LUA_CDIR}?${CMAKE_SHARED_MODULE_SUFFIX};${LUA_CDIR}loadall${CMAKE_SHARED_MODULE_SUFFIX}" )
+ # Paths (Double escapes needed)
+ set ( LUA_DIRSEP "\\\\" )
+ set ( LUA_LDIR "!\\\\lua\\\\" CACHE STRING "Pure Lua module location." )
+ set ( LUA_CDIR "!\\\\" CACHE STRING "Binary Lua module location." )
+ set ( LUA_PATH_DEFAULT ".\\\\?.lua;${LUA_LDIR}?.lua;${LUA_LDIR}?\\\\init.lua;${LUA_CDIR}?.lua;${LUA_CDIR}?\\\\init.lua" )
+ set ( LUA_CPATH_DEFAULT ".\\\\?${CMAKE_SHARED_MODULE_SUFFIX};${LUA_CDIR}?${CMAKE_SHARED_MODULE_SUFFIX};${LUA_CDIR}loadall${CMAKE_SHARED_MODULE_SUFFIX}" )
else ()
# Posix systems (incl. Cygwin)
option ( LUA_USE_POSIX "Use POSIX functionality." ON )