File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,12 @@ cmake_push_check_state(RESET)
184184      LIBRARIES
185185        gnu # Haiku 
186186      VARIABLE  PHP_EXT_PCNTL_HAS_SCHED_GETCPU_SYMBOL
187-       LIBRARY_VARIABLE library 
187+       LIBRARY_VARIABLE PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY 
188188    )
189189
190190    if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU_SYMBOL)
191-       if (library )
192-         set (CMAKE_REQUIRED_LIBRARIES ${library } )
191+       if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY )
192+         set (CMAKE_REQUIRED_LIBRARIES ${PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY } )
193193      endif ()
194194      check_source_runs(C [[
195195        #include <sched.h>
@@ -204,8 +204,11 @@ cmake_push_check_state(RESET)
204204    endif ()
205205
206206    if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU)
207-       if (library)
208-         target_link_libraries (php_ext_pcntl PRIVATE  ${library} )
207+       if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY)
208+         target_link_libraries (
209+           php_ext_pcntl
210+           PRIVATE  ${PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY} 
211+         )
209212      endif ()
210213
211214      set (HAVE_SCHED_GETCPU TRUE )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments