cmake: Fix unicorn and llvm
This commit is contained in:
parent
7b69c87ffc
commit
9d369436d8
2 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ if (DYNARMIC_USE_LLVM)
|
||||||
llvm_map_components_to_libnames(llvm_libs armdesc armdisassembler aarch64desc aarch64disassembler x86desc x86disassembler)
|
llvm_map_components_to_libnames(llvm_libs armdesc armdisassembler aarch64desc aarch64disassembler x86desc x86disassembler)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DYNARMIC_TESTS_USE_UNICORN)
|
if (DYNARMIC_TESTS_USE_UNICORN AND DYNARMIC_TESTS)
|
||||||
find_package(Unicorn REQUIRED)
|
find_package(Unicorn REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -390,7 +390,7 @@ target_link_libraries(dynarmic
|
||||||
tsl::robin_map
|
tsl::robin_map
|
||||||
$<BUILD_INTERFACE:xbyak>
|
$<BUILD_INTERFACE:xbyak>
|
||||||
$<BUILD_INTERFACE:Zydis>
|
$<BUILD_INTERFACE:Zydis>
|
||||||
$<$<BOOL:DYNARMIC_USE_LLVM>:${llvm_libs}>
|
"$<$<BOOL:DYNARMIC_USE_LLVM>:${llvm_libs}>"
|
||||||
)
|
)
|
||||||
if (DYNARMIC_ENABLE_CPU_FEATURE_DETECTION)
|
if (DYNARMIC_ENABLE_CPU_FEATURE_DETECTION)
|
||||||
target_compile_definitions(dynarmic PRIVATE DYNARMIC_ENABLE_CPU_FEATURE_DETECTION=1)
|
target_compile_definitions(dynarmic PRIVATE DYNARMIC_ENABLE_CPU_FEATURE_DETECTION=1)
|
||||||
|
|
Loading…
Reference in a new issue