Skip to content

Commit daf40c1

Browse files
Aadeshveervgvassilev
authored andcommitted
[CMake] Add fallback hint to find Clang on lib64 systems
This adds ${LLVM_DIR}/../clang to extra_hints to automatically resolve Clang_DIR directly using LLVM_DIR if already resolved, especially for linux distributions like Linux that deafult to lib64 for libraries
1 parent 1312b24 commit daf40c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
125125
# ClangConfig.cmake is not versioned and we will need to work harder to find
126126
# the correct package.
127127
if (DEFINED LLVM_VERSION AND NOT DEFINED Clang_DIR)
128-
set(extra_hints HINTS ${Clang_DIR} "${LLVM_BINARY_DIR}/lib/cmake/clang" "${LLVM_BINARY_DIR}/cmake")
128+
set(extra_hints HINTS ${Clang_DIR} "${LLVM_BINARY_DIR}/lib/cmake/clang" "${LLVM_BINARY_DIR}/cmake" "${LLVM_DIR}/../clang")
129129
find_package(Clang REQUIRED CONFIG ${extra_hints} NO_DEFAULT_PATH)
130130
endif()
131131

0 commit comments

Comments
 (0)