[cmake] refactor: Use CPM over submodules #143

Merged
crueter merged 42 commits from refactor/cpm into master 2025-08-04 04:50:17 +02:00
2 changed files with 10 additions and 11 deletions
Showing only changes of commit 7588de09a2 - Show all commits

View file

@ -214,6 +214,8 @@ if (YUZU_USE_BUNDLED_VCPKG)
include(CPM)
set(CPM_USE_LOCAL_PACKAGES OFF)
# crueter: unfortunately shallow-downloading vcpkg isn't possible
# hence why I want to remove it
CPMAddPackage(
NAME vcpkg
DOWNLOAD_ONLY YES

View file

@ -80,6 +80,12 @@ CPMAddPackage(
# zydis
if ("x86_64" IN_LIST ARCHITECTURE)
CPMAddPackage(
NAME Zycore
URL "https://github.com/zyantific/zycore-c/archive/75a36c45ae.zip"
)
CPMAddPackage(
NAME Zydis
VERSION 4
@ -88,16 +94,7 @@ CPMAddPackage(
"ZYDIS_BUILD_TOOLS OFF"
"ZYDIS_BUILD_EXAMPLES OFF"
"ZYDIS_BUILD_DOXYGEN OFF"
"ZYAN_ZYCORE_PATH ${Zycore_SOURCE_DIR}"
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen ON"
)
CPMAddPackage(
NAME Zycore
URL "https://github.com/zyantific/zycore-c/archive/75a36c45ae.zip"
)
if (Zydis_ADDED)
if ("x86_64" IN_LIST ARCHITECTURE)
set(ZYAN_ZYCORE_PATH "${Zycore_SOURCE_DIR}" CACHE PATH "")
set(CMAKE_DISABLE_FIND_PACKAGE_Doxygen ON)
endif()
endif()