aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/LLVM-Config.cmake
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-19 10:01:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-19 10:01:25 +0000
commitd8e91e46262bc44006913e6796843909f1ac7bcd (patch)
tree7d0c143d9b38190e0fa0180805389da22cd834c5 /cmake/modules/LLVM-Config.cmake
parentb7eb8e35e481a74962664b63dfb09483b200209a (diff)
downloadsrc-d8e91e46262bc44006913e6796843909f1ac7bcd.tar.gz
src-d8e91e46262bc44006913e6796843909f1ac7bcd.zip
Notes
Diffstat (limited to 'cmake/modules/LLVM-Config.cmake')
-rwxr-xr-xcmake/modules/LLVM-Config.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/LLVM-Config.cmake b/cmake/modules/LLVM-Config.cmake
index 8eabddc73775..474a874a4426 100755
--- a/cmake/modules/LLVM-Config.cmake
+++ b/cmake/modules/LLVM-Config.cmake
@@ -302,7 +302,9 @@ function(llvm_expand_dependencies out_libs)
expand_topologically(${lib} "${required_libs}" "${visited_libs}")
endforeach()
- list(REVERSE required_libs)
+ if(required_libs)
+ list(REVERSE required_libs)
+ endif()
set(${out_libs} ${required_libs} PARENT_SCOPE)
endfunction()