1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-25 21:46:38 -05:00

cmake: prefer system llvm library

This commit is contained in:
Alexandre Bouvier
2023-01-23 01:51:12 +01:00
parent f99f618d45
commit 34b1ea9c19
11 changed files with 28 additions and 10 deletions

View File

@@ -158,6 +158,9 @@ if (YUZU_USE_EXTERNAL_VULKAN_HEADERS)
add_subdirectory(Vulkan-Headers EXCLUDE_FROM_ALL)
endif()
add_library(demangle STATIC)
target_include_directories(demangle PUBLIC ./demangle)
target_sources(demangle PRIVATE demangle/ItaniumDemangle.cpp)
if (NOT TARGET LLVM::Demangle)
add_library(demangle STATIC)
target_include_directories(demangle PUBLIC ./demangle)
target_sources(demangle PRIVATE demangle/ItaniumDemangle.cpp)
add_library(LLVM::Demangle ALIAS demangle)
endif()