mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
CMake: Export targets for Clang Plugins so they can be used by Serenity
This commit is contained in:
parent
5194ab59b5
commit
d51c96d56d
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/ADKaster
Commit: d51c96d56d
Pull-request: https://github.com/SerenityOS/serenity/pull/24322
5 changed files with 49 additions and 32 deletions
12
Meta/CMake/clang_development.cmake
Normal file
12
Meta/CMake/clang_development.cmake
Normal file
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue