diff --git a/build.sh b/build.sh index e26f9574..4fb10a56 100755 --- a/build.sh +++ b/build.sh @@ -66,7 +66,12 @@ if [[ $1 == "Clean" ]]; then fi build_type=$1 -install_prefix="/usr/local" +if [ -z $CASCADE_INSTALL_PREFIX ]; then + install_prefix="/usr/local" +else + install_prefix=$CASCADE_INSTALL_PREFIX +fi + cmake_defs="-DCMAKE_BUILD_TYPE=${build_type} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_INSTALL_PREFIX=${install_prefix} -Dpybind11_DIR=`pybind11-config --cmakedir`" build_path="build-${build_type}"