Skip to content

Commit b1ce9af

Browse files
committed
Wrap sigsetjmp check in system condition
1 parent 4d55ba8 commit b1ce9af

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmake/Zend/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,14 @@ check_symbol_exists(pthread_stackseg_np "pthread.h" HAVE_PTHREAD_STACKSEG_NP)
281281
# Check for POSIX sigsetjmp. It can be a function or defined as a macro. Note,
282282
# that POSIX-compliant *nix systems mostly all should have it. On Windows the
283283
# setjmp can be used instead.
284-
check_symbol_exists(sigsetjmp "setjmp.h" _HAVE_SIGSETJMP)
285-
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" AND NOT _HAVE_SIGSETJMP)
286-
message(FATAL_ERROR "Required sigsetjmp not found. Please, check CMake logs.")
284+
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
285+
check_symbol_exists(sigsetjmp "setjmp.h" _HAVE_SIGSETJMP)
286+
if(NOT _HAVE_SIGSETJMP)
287+
message(
288+
FATAL_ERROR
289+
"Required sigsetjmp not found. Please, check CMake logs."
290+
)
291+
endif()
287292
endif()
288293

289294
message(CHECK_START "Checking whether __cpuid_count is available")

0 commit comments

Comments
 (0)