diff options
author | David Manura <dm.git@math2.org> | 2011-03-19 18:11:25 -0400 |
---|---|---|
committer | David Manura <dm.git@math2.org> | 2011-03-19 18:11:25 -0400 |
commit | e86b3d7dfdaf72b07dc005843d8fdaaa9d97f12b (patch) | |
tree | d622538c1c7f13d27f782cd8e995c0b6e9f38fbf | |
parent | e44595b3410226a2f8475b1ae49123577cd3a62d (diff) | |
download | lua-e86b3d7dfdaf72b07dc005843d8fdaaa9d97f12b.tar.gz |
cmake - fix posix LUA_LDIR/LUA_CDIR
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8297864..60fe588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,8 +43,8 @@ else () option ( LUA_USE_ULONGJMP "Use ulongjmp" ON) # Paths set ( LUA_DIRSEP "/" ) - set ( LUA_LDIR "/usr/local/share/lua/5.1/" CACHE STRING "Pure Lua module location." ) - set ( LUA_CDIR "/usr/local/lib/lua/5.1/" CACHE STRING "Binary Lua module location." ) + set ( LUA_LDIR "${CMAKE_INSTALL_PREFIX}/share/lua/5.1/" CACHE STRING "Pure Lua module location." ) + set ( LUA_CDIR "${CMAKE_INSTALL_PREFIX}/lib/lua/5.1/" 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}" ) endif () |