aboutsummaryrefslogtreecommitdiff
path: root/CMakeModules/FindLLVM.cmake
diff options
context:
space:
mode:
authorEsther1024 <lizzie@bixed.xyz>2025-07-09 01:31:18 +0000
committercrueter <crueter@eden-emu.dev>2025-07-09 01:31:18 +0000
commit693404bf3755e6e9b09b83bdaccff7423542a081 (patch)
tree4c9448a05b36324bc461fed40b69d5ca81c071b2 /CMakeModules/FindLLVM.cmake
parent347d54bc26073f47690f03a26d58df82c08dff29 (diff)
fix LLVM not using current top level src dir (#30)
Reviewed-on: https://git.bixed.xyz/Bix/eden/pulls/30 Co-authored-by: Esther1024 <lizzie@bixed.xyz> Co-committed-by: Esther1024 <lizzie@bixed.xyz>
Diffstat (limited to 'CMakeModules/FindLLVM.cmake')
-rw-r--r--CMakeModules/FindLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeModules/FindLLVM.cmake b/CMakeModules/FindLLVM.cmake
index efbd0ca460..8dc064d5d1 100644
--- a/CMakeModules/FindLLVM.cmake
+++ b/CMakeModules/FindLLVM.cmake
@@ -19,7 +19,7 @@ if (LLVM_FOUND AND LLVM_Demangle_FOUND AND NOT TARGET LLVM::Demangle)
target_include_directories(LLVM::Demangle INTERFACE ${LLVM_INCLUDE_DIRS})
# prefer shared LLVM: https://github.com/llvm/llvm-project/issues/34593
# but use ugly hack because llvm_config doesn't support interface library
- add_library(_dummy_lib SHARED EXCLUDE_FROM_ALL src/yuzu/main.cpp)
+ add_library(_dummy_lib SHARED EXCLUDE_FROM_ALL ${CMAKE_SOURCE_DIR}/src/yuzu/main.cpp)
llvm_config(_dummy_lib USE_SHARED demangle)
get_target_property(LLVM_LIBRARIES _dummy_lib LINK_LIBRARIES)
target_link_libraries(LLVM::Demangle INTERFACE ${LLVM_LIBRARIES})