mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-24 08:02:58 +00:00
cmake: fix static standalone build
This commit is contained in:
@@ -2,31 +2,28 @@
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
set(ARCHITECTURE @ARCHITECTURE@)
|
||||
set(ARCHITECTURE "@ARCHITECTURE@")
|
||||
|
||||
find_dependency(Boost 1.57 REQUIRED)
|
||||
if (NOT @CMAKE_DISABLE_FIND_PACKAGE_fmt@)
|
||||
find_dependency(fmt 9 QUIET)
|
||||
endif()
|
||||
if (NOT @CMAKE_DISABLE_FIND_PACKAGE_mcl@)
|
||||
find_dependency(mcl 0.1.12 EXACT QUIET)
|
||||
endif()
|
||||
if (NOT @CMAKE_DISABLE_FIND_PACKAGE_tsl-robin-map@)
|
||||
find_dependency(tsl-robin-map QUIET)
|
||||
endif()
|
||||
if (NOT @BUILD_SHARED_LIBS@)
|
||||
find_dependency(Boost 1.57)
|
||||
find_dependency(fmt 9)
|
||||
find_dependency(mcl 0.1.12 EXACT)
|
||||
find_dependency(tsl-robin-map)
|
||||
|
||||
if ("x86_64" IN_LIST ARCHITECTURE)
|
||||
if (NOT @CMAKE_DISABLE_FIND_PACKAGE_xbyak@)
|
||||
find_dependency(xbyak 6 QUIET)
|
||||
if ("arm64" IN_LIST ARCHITECTURE)
|
||||
find_dependency(oaknut)
|
||||
endif()
|
||||
if (NOT @CMAKE_DISABLE_FIND_PACKAGE_Zydis@)
|
||||
find_dependency(Zydis 4 QUIET)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (@DYNARMIC_USE_LLVM@)
|
||||
find_dependency(LLVM REQUIRED CONFIG)
|
||||
if ("x86_64" IN_LIST ARCHITECTURE)
|
||||
find_dependency(xbyak 6)
|
||||
find_dependency(Zydis 4)
|
||||
endif()
|
||||
|
||||
if (@DYNARMIC_USE_LLVM@)
|
||||
find_dependency(LLVM CONFIG)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
||||
|
||||
check_required_components(@PROJECT_NAME@)
|
||||
|
||||
Reference in New Issue
Block a user