commit f043e0e85cac9330cf809bef177784c3cd133348 (tree)
parent 403eb92a626e44ab456099fe48fa221639e2e2f5
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Thu, 13 Apr 2017 00:12:44 -0400
build: ignore libLLD.so when it is a broken symlink
closes #318
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/Findlld.cmake b/cmake/Findlld.cmake
@@ -12,7 +12,7 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h
/mingw64/include)
find_library(LLD_LIBRARY NAMES lld-4.0 lld PATHS /usr/lib/llvm-4.0/lib)
-if(LLD_LIBRARY)
+if(EXISTS ${LLD_LIBRARY})
set(LLD_LIBRARIES ${LLD_LIBRARY})
else()
macro(FIND_AND_ADD_LLD_LIB _libname_)