mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
13 lines
353 B
CMake
13 lines
353 B
CMake
|
#
|
||
|
# Finds clang and llvm development packages that match the current clang version
|
||
|
#
|
||
|
|
||
|
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set(DESIRED_CLANG_VERSION "${CMAKE_CXX_COMPILER_VERSION}")
|
||
|
|
||
|
find_package(Clang "${DESIRED_CLANG_VERSION}" QUIET REQUIRED CONFIG)
|
||
|
find_package(LLVM "${DESIRED_CLANG_VERSION}" QUIET REQUIRED CONFIG)
|