aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2020-11-23 20:55:58 +0100
committerTim Jenssen <tim.jenssen@qt.io>2020-11-23 19:57:25 +0000
commitec202c82a3ca00469385ec094e287b88f61d939f (patch)
treee82d2b9e9c08e5774577da80982fffd68eeddf9d
parentbc5ffdb56b6edd8f4863570174dada4c22b85ebb (diff)
cmake: fix no libclang builds4.14
Change-Id: Id5ce15851bf1cdbd3661adcf5751e66a4cf96930 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--cmake/FindClang.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindClang.cmake b/cmake/FindClang.cmake
index 3176db73b7..fcc9f241e1 100644
--- a/cmake/FindClang.cmake
+++ b/cmake/FindClang.cmake
@@ -14,7 +14,7 @@ elseif (TARGET clang-cpp)
endif()
SET(QTC_CLANG_BUILDMODE_MATCH ON)
-if (WIN32)
+if (WIN32 AND TARGET libclang)
string(TOLOWER ${CMAKE_BUILD_TYPE} _type)
get_target_property(_llvmConfigs libclang IMPORTED_CONFIGURATIONS)
string(TOLOWER ${_llvmConfigs} _llvm_configs)