mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-21 21:26:11 +01:00
cmake: fix static standalone build
This commit is contained in:
parent
e92f69aca0
commit
b3a92ab54d
4 changed files with 26 additions and 30 deletions
13
externals/CMakeLists.txt
vendored
13
externals/CMakeLists.txt
vendored
|
|
@ -2,6 +2,7 @@
|
|||
if (BUILD_SHARED_LIBS)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL ON)
|
||||
endif()
|
||||
|
||||
# Allow options shadowing with normal variables when subproject use old cmake policy
|
||||
|
|
@ -27,35 +28,35 @@ endif()
|
|||
if (NOT TARGET fmt::fmt)
|
||||
# fmtlib formatting library
|
||||
set(FMT_INSTALL ON)
|
||||
add_subdirectory(fmt EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(fmt)
|
||||
endif()
|
||||
|
||||
# mcl
|
||||
|
||||
if (NOT TARGET merry::mcl)
|
||||
set(MCL_INSTALL ON)
|
||||
add_subdirectory(mcl EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(mcl)
|
||||
endif()
|
||||
|
||||
# oaknut
|
||||
|
||||
if (NOT TARGET merry::oaknut)
|
||||
if ("arm64" IN_LIST ARCHITECTURE)
|
||||
add_subdirectory(oaknut EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(oaknut)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# robin-map
|
||||
|
||||
if (NOT TARGET tsl::robin_map)
|
||||
add_subdirectory(robin-map EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(robin-map)
|
||||
endif()
|
||||
|
||||
# xbyak
|
||||
|
||||
if (NOT TARGET xbyak::xbyak)
|
||||
if ("x86_64" IN_LIST ARCHITECTURE)
|
||||
add_subdirectory(xbyak EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(xbyak)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
@ -68,7 +69,7 @@ if (NOT TARGET Zydis::Zydis)
|
|||
set(ZYDIS_BUILD_DOXYGEN OFF)
|
||||
set(ZYAN_ZYCORE_PATH "${CMAKE_CURRENT_LIST_DIR}/zycore" CACHE PATH "")
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_Doxygen ON)
|
||||
add_subdirectory(zydis EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(zydis)
|
||||
add_library(Zydis::Zydis ALIAS Zydis)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue