Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 53280f0

Browse files
committed
Fixed bug in 'find_dependent_platform_libraries' function.
It failed when there were no included headers found, so a matching guard-check has been added.
1 parent b0df5ab commit 53280f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/Platform/Targets/PlatformLibraryTarget.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ function(find_dependent_platform_libraries _sources _return_var)
1111
get_source_file_included_headers(${source} source_includes WE)
1212
list(APPEND included_headers_names ${source_includes})
1313
endforeach ()
14-
list(REMOVE_DUPLICATES included_headers_names)
14+
15+
if (included_headers_names)
16+
list(REMOVE_DUPLICATES included_headers_names)
17+
endif ()
1518

1619
get_platform_libraries_from_names("${included_headers_names}" dependent_libs)
1720
set(${_return_var} ${dependent_libs} PARENT_SCOPE)

0 commit comments

Comments
 (0)