[dynarmic] include catch2 and oaknut properly for tests
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
938690c5ca
commit
eca5006779
2 changed files with 2 additions and 2 deletions
2
externals/CMakeLists.txt
vendored
2
externals/CMakeLists.txt
vendored
|
@ -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
|
||||
|
|
2
src/dynarmic/externals/CMakeLists.txt
vendored
2
src/dynarmic/externals/CMakeLists.txt
vendored
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue