Skip to content

Commit 28b2048

Browse files
committed
Use smthg else
1 parent 54a5759 commit 28b2048

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/external_dependencies.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function(find_package_or_fetch)
3838
SYSTEM
3939
EXCLUDE_FROM_ALL)
4040
FetchContent_MakeAvailable(${arg_PACKAGE_NAME})
41-
get_property(all_targets GLOBAL PROPERTY TARGETS)
41+
# get_property(all_targets GLOBAL PROPERTY TARGETS)
42+
get_property(all_targets TARGET ${arg_PACKAGE_NAME} PROPERTY ALL_TARGETS)
4243
message(STATUS "Available targets after ${arg_PACKAGE_NAME} build: ${all_targets}")
4344
message(STATUS "\t✅ Fetched ${arg_PACKAGE_NAME}")
4445
else()

0 commit comments

Comments
 (0)