Skip to content

Commit 48f6855

Browse files
committed
Merge branch 'PHP-8.4'
2 parents d164dd3 + 5793e45 commit 48f6855

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

cmake/ext/pcntl/CMakeLists.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)