projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[CMake] More cleanup of installing symlinks.
[oota-llvm.git]
/
cmake
/
modules
/
AddLLVM.cmake
diff --git
a/cmake/modules/AddLLVM.cmake
b/cmake/modules/AddLLVM.cmake
index 7040df500bb915755da096d51c4872a1aa4bcf80..45a374f95e714b55b05c4bbe58c777f7a432bace 100644
(file)
--- a/
cmake/modules/AddLLVM.cmake
+++ b/
cmake/modules/AddLLVM.cmake
@@
-1024,7
+1024,13
@@
function(add_lit_testsuites project directory)
endfunction()
function(llvm_install_symlink name dest)
endfunction()
function(llvm_install_symlink name dest)
- install(SCRIPT ${CMAKE_SOURCE_DIR}/cmake/modules/install_symlink.cmake
+ foreach(path ${CMAKE_MODULE_PATH})
+ if(EXISTS ${path}/LLVMInstallSymlink.cmake)
+ set(INSTALL_SYMLINK ${path}/LLVMInstallSymlink.cmake)
+ break()
+ endif()
+ endforeach()
+ install(SCRIPT ${INSTALL_SYMLINK}
CODE "install_symlink(${name} ${dest})"
COMPONENT ${name})
CODE "install_symlink(${name} ${dest})"
COMPONENT ${name})