We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e9a8ca6 + 888fbfb commit 21aa955Copy full SHA for 21aa955
scripts/build_cudaq.sh
@@ -176,9 +176,18 @@ cmake_args="-G Ninja '"$repo_root"' \
176
# here, but keep the definition for CMAKE_CUDA_HOST_COMPILER.
177
if $verbose; then
178
echo $cmake_args | xargs cmake
179
+ status=$?
180
else
181
echo $cmake_args | xargs cmake \
182
2> logs/cmake_error.txt 1> logs/cmake_output.txt
183
184
+fi
185
+
186
+# Check if cmake succeeded
187
+if [ "$status" -ne 0 ]; then
188
+ echo -e "\e[01;31mError: CMake configuration failed. Please check logs/cmake_error.txt for details.\e[0m" >&2
189
+ cat logs/cmake_error.txt >&2
190
+ cd "$working_dir" && (return 0 2>/dev/null) && return 1 || exit 1
191
fi
192
193
# Build and install CUDA-Q
0 commit comments