[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 2 additions and 2 deletions
Showing only changes of commit eca5006779 - Show all commits

View file

@ -32,7 +32,7 @@ if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
endif()
# Oaknut (also used by Dynarmic, so needs to be added first)
if (ARCHITECTURE_arm64)
if (ARCHITECTURE_arm64 OR DYNARMIC_TESTS)
CPMAddPackage(
NAME oaknut
VERSION 2.0.1

View file

@ -35,7 +35,7 @@ endif()
# TODO(crueter): dedup
if (NOT TARGET Catch2::Catch2WithMain)
if (DYNARMIC_TESTS)
add_subdirectory(catch EXCLUDE_FROM_ALL)
find_package(Catch2 3.0.1 REQUIRED)
endif()
endif()