aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-11 22:09:17 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-11 22:09:17 -0400
commitf79faf9008c8e4c5539780e712012c55ab1b3cfc (patch)
tree047ae4e0e1fe4245e246c986343c4f0093cc5de5 /cmake
parentdbc00e24247da16ac584bb9e92b5ccf04647c3b9 (diff)
downloadzig-f79faf9008c8e4c5539780e712012c55ab1b3cfc.tar.gz
zig-f79faf9008c8e4c5539780e712012c55ab1b3cfc.zip
cmake: allow not finding some clang libs
partial revert of aaf99371b22e816a4162391d799b9d22bba21120 because it broke the build for some people
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findclang.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Findclang.cmake b/cmake/Findclang.cmake
index c556455d1c..5f5bef8207 100644
--- a/cmake/Findclang.cmake
+++ b/cmake/Findclang.cmake
@@ -48,7 +48,9 @@ else()
/c/msys64/mingw64/lib
c:\\msys64\\mingw64\\lib
)
- set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB})
+ if(CLANG_${_prettylibname_}_LIB)
+ set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB})
+ endif()
endmacro(FIND_AND_ADD_CLANG_LIB)
FIND_AND_ADD_CLANG_LIB(clangFrontendTool)