]> granicus.if.org Git - llvm/commitdiff
[cmake] install_symlink should obey DESTDIR unconditionally
authorJustin Bogner <mail@justinbogner.com>
Thu, 15 Aug 2019 15:36:13 +0000 (15:36 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 15 Aug 2019 15:36:13 +0000 (15:36 +0000)
Setting DESTDIR was erroneously buried under a condition here - if
it's set it should always be used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369011 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMInstallSymlink.cmake

index 6f378f20d6ac81dace467486633b6768d2f03097..09fed8085c23e27a4a322240b7b094b011c91c1f 100644 (file)
@@ -3,9 +3,9 @@
 # See PR8397.
 
 function(install_symlink name target outdir)
+  set(DESTDIR $ENV{DESTDIR})
   if(CMAKE_HOST_UNIX)
     set(LINK_OR_COPY create_symlink)
-    set(DESTDIR $ENV{DESTDIR})
   else()
     set(LINK_OR_COPY copy)
   endif()