summaryrefslogtreecommitdiff
path: root/flang/cmake/modules/FlangConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'flang/cmake/modules/FlangConfig.cmake.in')
-rw-r--r--flang/cmake/modules/FlangConfig.cmake.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/flang/cmake/modules/FlangConfig.cmake.in b/flang/cmake/modules/FlangConfig.cmake.in
index 576ec367c498..7893cb64b936 100644
--- a/flang/cmake/modules/FlangConfig.cmake.in
+++ b/flang/cmake/modules/FlangConfig.cmake.in
@@ -2,8 +2,7 @@
@FLANG_CONFIG_CODE@
-set(LLVM_VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH})
-find_package(LLVM @LLVM_VERSION@ EXACT REQUIRED CONFIG
+find_package(LLVM REQUIRED CONFIG
HINTS "@FLANG_CONFIG_LLVM_CMAKE_DIR@")
set(FLANG_EXPORTED_TARGETS "@FLANG_EXPORTS@")