Skip to content

Commit 5793e45

Browse files
committed
Rename library cache var
1 parent 8a546cf commit 5793e45

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
@@ -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)

0 commit comments

Comments
 (0)