1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[cmake] install_symlink should obey DESTDIR unconditionally

Setting DESTDIR was erroneously buried under a condition here - if
it's set it should always be used.

llvm-svn: 369011
This commit is contained in:
Justin Bogner 2019-08-15 15:36:13 +00:00
parent 0029025259
commit 419008c6d4

View 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()