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 @@ -178,12 +178,12 @@ cmake_push_check_state(RESET)
178178      LIBRARIES
179179        gnu # Haiku 
180180      VARIABLE  PHP_EXT_PCNTL_HAS_SCHED_GETCPU_SYMBOL
181-       LIBRARY_VARIABLE library 
181+       LIBRARY_VARIABLE PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY 
182182    )
183183
184184    if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU_SYMBOL)
185-       if (library )
186-         set (CMAKE_REQUIRED_LIBRARIES ${library } )
185+       if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY )
186+         set (CMAKE_REQUIRED_LIBRARIES ${PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY } )
187187      endif ()
188188      check_source_runs(C [[
189189        #include <sched.h>
@@ -198,8 +198,11 @@ cmake_push_check_state(RESET)
198198    endif ()
199199
200200    if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU)
201-       if (library)
202-         target_link_libraries (php_ext_pcntl PRIVATE  ${library} )
201+       if (PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY)
202+         target_link_libraries (
203+           php_ext_pcntl
204+           PRIVATE  ${PHP_EXT_PCNTL_HAS_SCHED_GETCPU_LIBRARY} 
205+         )
203206      endif ()
204207
205208      set (HAVE_SCHED_GETCPU TRUE )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments