mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-17 21:32:00 +01:00
Merge 2083e9cf05ca64c12ec2aae42aac9c0f2054cd53 into 5f4422d68dc3530c353af1f87499de1c864b60ad
This commit is contained in:
commit
60f95222f2
@ -32,7 +32,18 @@ endfunction()
|
|||||||
function(get_target_interface var config target property)
|
function(get_target_interface var config target property)
|
||||||
get_target_property(result ${target} INTERFACE_${property})
|
get_target_property(result ${target} INTERFACE_${property})
|
||||||
if(result)
|
if(result)
|
||||||
evaluate_generator_expressions(result "${config}")
|
# On systems where pthread functionality is not provided by
|
||||||
|
# the C library implementation, the CMake FindThreads module
|
||||||
|
# sets the Threads::Threads target's compile options to
|
||||||
|
# generator expressions that evaluate to `-pthread` in this
|
||||||
|
# project.
|
||||||
|
# To improve the readability of the configuration summary,
|
||||||
|
# we skip these generator expressions.
|
||||||
|
if(${target} STREQUAL "Threads::Threads" AND ${property} STREQUAL "COMPILE_OPTIONS")
|
||||||
|
set(result -pthread)
|
||||||
|
else()
|
||||||
|
evaluate_generator_expressions(result "${config}")
|
||||||
|
endif()
|
||||||
list(JOIN result " " result)
|
list(JOIN result " " result)
|
||||||
else()
|
else()
|
||||||
set(result)
|
set(result)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user