diff options
author | Peter Drahoš <drahosp@gmail.com> | 2011-04-01 23:46:06 +0200 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2011-04-01 23:46:06 +0200 |
commit | 2d781da53e1250590bda1e30e5b316bd5fb2bbe9 (patch) | |
tree | 3557e6cee5ecd56d2596c4ca7716a4ab9e2a8ea9 | |
parent | d92ed0b4a64eda1914bd53b6b690840387ef1487 (diff) | |
download | lua-2d781da53e1250590bda1e30e5b316bd5fb2bbe9.tar.gz |
Fixed regex issue, it striped path separators out
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4375f22..b75ec9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,11 +45,11 @@ if ( WIN32 AND NOT CYGWIN ) option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ON ) # Paths (Double escapes needed) set ( LUA_DIRSEP "\\\\" ) - string ( REPLACE "/" ${LUA_DIRSEP} LUA_DIR ${LUA_DIR} ) - string ( REPLACE "/" ${LUA_DIRSEP} LUA_LDIR ${LUA_LDIR} ) - string ( REPLACE "/" ${LUA_DIRSEP} LUA_CDIR ${LUA_CDIR} ) - string ( REPLACE "/" ${LUA_DIRSEP} LUA_PATH_DEFAULT ${LUA_PATH_DEFAULT} ) - string ( REPLACE "/" ${LUA_DIRSEP} LUA_CPATH_DEFAULT ${LUA_CPATH_DEFAULT} ) + string ( REPLACE "/" ${LUA_DIRSEP} LUA_DIR "${LUA_DIR}" ) + string ( REPLACE "/" ${LUA_DIRSEP} LUA_LDIR "${LUA_LDIR}" ) + string ( REPLACE "/" ${LUA_DIRSEP} LUA_CDIR "${LUA_CDIR}" ) + string ( REPLACE "/" ${LUA_DIRSEP} LUA_PATH_DEFAULT "${LUA_PATH_DEFAULT}" ) + string ( REPLACE "/" ${LUA_DIRSEP} LUA_CPATH_DEFAULT "${LUA_CPATH_DEFAULT}" ) else () # Posix systems (incl. Cygwin) option ( LUA_USE_POSIX "Use POSIX functionality." ON ) |