From 0a7c1094e779ddf34e4362c88fcb82ef15df559c Mon Sep 17 00:00:00 2001 From: GhostlyDark <31742919+GhostlyDark@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:15:22 +0000 Subject: [PATCH] 3rdParty: Build mupen64plus-input-gca in bin dir (#289) --- Source/3rdParty/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/3rdParty/CMakeLists.txt b/Source/3rdParty/CMakeLists.txt index 4100cebb..ed418236 100644 --- a/Source/3rdParty/CMakeLists.txt +++ b/Source/3rdParty/CMakeLists.txt @@ -158,10 +158,11 @@ if (BUILD_INPUT_GCA) CONFIGURE_COMMAND "" INSTALL_COMMAND "" - BUILD_COMMAND cargo build --release --features "m64p_compat" - BUILD_IN_SOURCE True + BUILD_COMMAND cargo build --manifest-path ${CMAKE_CURRENT_SOURCE_DIR}/mupen64plus-input-gca/Cargo.toml --release --features "m64p_compat" --target-dir=${CMAKE_CURRENT_BINARY_DIR}/mupen64plus-input-gca/target + BUILD_IN_SOURCE False + BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/mupen64plus-input-gca/target/release - BUILD_BYPRODUCTS ${CMAKE_CURRENT_SOURCE_DIR}/mupen64plus-input-gca/target/release/${GCA_LIB} + BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/mupen64plus-input-gca/target/release/${GCA_LIB} ) endif(BUILD_INPUT_GCA)