Skip to content

Commit d8c73d1

Browse files
authored
[cmake] Rely on general logic to find the llvm package for clang-repl. (#164)
1 parent 726b91a commit d8c73d1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
8787
find_package(Clang REQUIRED CONFIG ${clang_search_hints} NO_DEFAULT_PATH)
8888
find_package(Cling REQUIRED CONFIG ${cling_search_hints} NO_DEFAULT_PATH)
8989
endif(USE_CLING)
90-
if (USE_REPL)
91-
message(STATUS "Mode USE_REPL = ON")
92-
find_package(LLVM REQUIRED CONFIG ${llvm_search_hints} NO_DEFAULT_PATH)
93-
find_package(Clang REQUIRED CONFIG ${clang_search_hints} NO_DEFAULT_PATH)
94-
endif(USE_REPL)
9590

9691
if (LLVM_FOUND)
9792
if (LLVM_PACKAGE_VERSION VERSION_LESS LLVM_MIN_SUPPORTED OR LLVM_PACKAGE_VERSION VERSION_GREATER_EQUAL LLVM_VERSION_UPPER_BOUND)
@@ -147,11 +142,11 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
147142
set(CLANG_VERSION ${CLANG_MIN_SUPPORTED})
148143
endif()
149144

150-
find_package(Clang ${CLANG_VERSION} REQUIRED CONFIG ${clang_extra_hints} NO_DEFAULT_PATH)
145+
find_package(Clang ${CLANG_VERSION} REQUIRED CONFIG ${clang_search_hints} NO_DEFAULT_PATH)
151146
endif()
152147

153148
if (NOT Clang_FOUND AND DEFINED Clang_DIR)
154-
find_package(Clang REQUIRED CONFIG ${clang_extra_hints} NO_DEFAULT_PATH)
149+
find_package(Clang REQUIRED CONFIG ${clang_search_hints} NO_DEFAULT_PATH)
155150
endif()
156151

157152
if (NOT Clang_FOUND)

0 commit comments

Comments
 (0)