File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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 ()
287292endif ()
288293
289294message (CHECK_START "Checking whether __cpuid_count is available" )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments