Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/distro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2015-08-05 12:42:24 +0300
committersoumith <soumith@fb.com>2015-08-05 12:42:24 +0300
commit6a5f51bd66bc37d5053c907f9487c8101a50cf41 (patch)
treeefa3694769bc1e4610594204137705598d807fce /install.sh
parent9f550fb043b56aaf81a2f5e41221ecc08ecd19a8 (diff)
ability to install vanilla lua via distro
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 753b9c8..43248fb 100755
--- a/install.sh
+++ b/install.sh
@@ -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 ..