diff options
author | soumith <soumith@fb.com> | 2015-08-05 12:42:24 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2015-08-05 12:42:24 +0300 |
commit | 6a5f51bd66bc37d5053c907f9487c8101a50cf41 (patch) | |
tree | efa3694769bc1e4610594204137705598d807fce /install.sh | |
parent | 9f550fb043b56aaf81a2f5e41221ecc08ecd19a8 (diff) |
ability to install vanilla lua via distro
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,7 @@ THIS_DIR=$(cd $(dirname $0); pwd) PREFIX="${THIS_DIR}/install" BATCH_INSTALL=0 +TORCH_LUA_VERSION=${TORCH_LUA_VERSION:-"LUAJIT21"} # by default install LUAJIT21 while getopts 'bh:' x; do case "$x" in @@ -46,7 +47,8 @@ fi mkdir -p build cd build -cmake .. -DCMAKE_INSTALL_PREFIX="${PREFIX}" -DCMAKE_BUILD_TYPE=Release -DWITH_LUAJIT21=ON +cmake .. -DCMAKE_INSTALL_PREFIX="${PREFIX}" -DCMAKE_BUILD_TYPE=Release -DWITH_${TORCH_LUA_VERSION}=ON + make && make install cd .. |