From f79faf9008c8e4c5539780e712012c55ab1b3cfc Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 11 Apr 2020 22:09:17 -0400 Subject: [PATCH] cmake: allow not finding some clang libs partial revert of aaf99371b22e816a4162391d799b9d22bba21120 because it broke the build for some people --- cmake/Findclang.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)