Skip to content

Commit d337252

Browse files
dg0ytggerganov
authored andcommitted
cmake : Fix broken CMake error messages (ggml/1252)
1 parent af6f91d commit d337252

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ggml/src/ggml-blas/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if (BLAS_FOUND)
8181
target_link_libraries (ggml-blas PRIVATE ${BLAS_LIBRARIES})
8282
target_include_directories(ggml-blas PRIVATE ${BLAS_INCLUDE_DIRS})
8383
else()
84-
message(ERROR "BLAS not found, please refer to "
85-
"https://cmake.org/cmake/help/latest/module/FindBLAS.html#blas-lapack-vendors"
86-
" to set correct GGML_BLAS_VENDOR")
84+
message(FATAL_ERROR "BLAS not found, please refer to "
85+
"https://cmake.org/cmake/help/latest/module/FindBLAS.html#blas-lapack-vendors"
86+
" to set correct GGML_BLAS_VENDOR")
8787
endif()

ggml/src/ggml-sycl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ elseif(SUPPORTS_SYCL)
1313
If you expected the oneAPI Release compiler, please install oneAPI & source it, like:
1414
source /opt/intel/oneapi/setvars.sh")
1515
else()
16-
message(FATAL_ERROR, "C++ compiler lacks SYCL support.")
16+
message(FATAL_ERROR "C++ compiler lacks SYCL support.")
1717
endif()
1818
message(STATUS "SYCL found")
1919
#todo: AOT
@@ -170,7 +170,7 @@ else()
170170
target_compile_definitions(ggml-sycl PRIVATE GGML_SYCL_NVIDIA)
171171
elseif (GGML_SYCL_TARGET STREQUAL "AMD")
172172
if (NOT GGML_SYCL_DEVICE_ARCH)
173-
message(ERROR "Can't enable SYCL hip backend, GGML_SYCL_DEVICE_ARCH has not been set.")
173+
message(FATAL_ERROR "Can't enable SYCL hip backend, GGML_SYCL_DEVICE_ARCH has not been set.")
174174
endif()
175175
target_link_libraries(ggml-sycl PRIVATE ONEMATH::onemath_blas_rocblas)
176176
target_compile_options(ggml-sycl PRIVATE "-fsycl-targets=amdgcn-amd-amdhsa")

0 commit comments

Comments
 (0)