Skip to content

Commit 836a771

Browse files
authored
Merge pull request ceph#55638 from clwluvw/cmake-boost
cmake: skip boost dependency on ALIAS executable targets
2 parents 2e783bd + 4468c4e commit 836a771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/modules/BuildBoost.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,5 +315,8 @@ endfunction()
315315

316316
function(add_executable target)
317317
_add_executable(${target} ${ARGN})
318-
maybe_add_boost_dep(${target})
318+
# can't add dependencies to aliases
319+
if (NOT ";${ARGN};" MATCHES ";(ALIAS);")
320+
maybe_add_boost_dep(${target})
321+
endif()
319322
endfunction()

0 commit comments

Comments
 (0)