diff --git a/CMakeLists.txt b/CMakeLists.txt index 411de4620b..2724bdf736 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,6 +310,7 @@ endif() if (ARCHITECTURE_arm64 AND (ANDROID OR PLATFORM_LINUX)) set(HAS_NCE 1) add_compile_definitions(HAS_NCE=1) + find_package(oaknut 2.0.1 REQUIRED) endif() if (YUZU_ROOM) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 76912230d9..11c217fce6 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1224,7 +1224,6 @@ if (HAS_NCE) arm/nce/patcher.h arm/nce/visitor_base.h ) - find_package(oaknut 2.0.1 REQUIRED) target_link_libraries(core PRIVATE merry::oaknut) endif()