Salome HOME
Generated functions get*() for Interface returns attrubutes.
[modules/shaper.git] / make.sh
diff --git a/make.sh b/make.sh
index 0909eb96051617b7e436d68a8b55d0e0897633f0..5c82271858e4e82679e6b76a2ec128bb9c1a6e7c 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -9,6 +9,8 @@ if [ -f GCOV ]; then
   source env_lcov.sh
   CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug"
   CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=ON"
+elif [ -f DEBUG ]; then
+  CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug"
 else
   CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release"
 fi
@@ -18,5 +20,7 @@ CMAKE_ARGS="${CMAKE_ARGS} ${SOURCES_DIR}"
 mkdir -p ${BUILD_DIR}
 cd ${BUILD_DIR}
 
+set -e
+
 cmake -G "Unix Makefiles" ${CMAKE_ARGS}
 make -j$(nproc) install