Skip to content

Commit f84b24d

Browse files
jcfrhenryiii
andcommitted
fix: Stop processing on error using FATAL_ERROR instead of SEND_ERROR
Co-authored-by: Henry Schreiner <[email protected]>
1 parent baba6e4 commit f84b24d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cython_cmake/cmake/FindCython.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ if(CYTHON_EXECUTABLE)
7575
if(NOT ${CYTHON_version_result} EQUAL 0)
7676
set(_error_msg "Command \"${CYTHON_version_command}\" failed with")
7777
set(_error_msg "${_error_msg} output:\n${CYTHON_version_error}")
78-
message(SEND_ERROR "${_error_msg}")
78+
message(FATAL_ERROR "${_error_msg}")
7979
elseif("${CYTHON_version_output}" MATCHES "^[Cc]ython version ([^,]+)")
8080
set(CYTHON_VERSION "${CMAKE_MATCH_1}")
8181
elseif("${CYTHON_version_error}" MATCHES "^[Cc]ython version ([^,]+)")
8282
set(CYTHON_VERSION "${CMAKE_MATCH_1}")
8383
else()
84-
message(SEND_ERROR "Invalid Cython version output")
84+
message(FATAL_ERROR "Invalid Cython version output")
8585
endif()
8686
endif()
8787

src/cython_cmake/cmake/UseCython.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#=============================================================================
7272

7373
if(CMAKE_VERSION VERSION_LESS "3.7")
74-
message(SEND_ERROR "CMake 3.7 required for DEPFILE")
74+
message(FATAL_ERROR "CMake 3.7 required for DEPFILE")
7575
endif()
7676

7777
function(Cython_compile_pyx)

0 commit comments

Comments
 (0)