Skip to content

Commit 4468c4e

Browse files
committed
cmake: skip boost dependency on ALIAS executable targets
The current add_executable override in Boost does not support alias targets. Although Ceph currently has no alias targets that are affected by this limitation, addressing this issue now will benefit future developments and personal projects. This change enhances the robustness of the override logic, ensuring compatibility with alias targets moving forward. Signed-off-by: Seena Fallah <[email protected]>
1 parent d566702 commit 4468c4e

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)