From a3eefa84e621813bc6fc55c79fbc16c734c4186f Mon Sep 17 00:00:00 2001 From: James Benton Date: Sat, 6 Jun 2020 15:22:56 +0100 Subject: [PATCH] cmake: Find WUT_RPLIMPORTGEN in toolchain. --- share/wut.toolchain.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/wut.toolchain.cmake b/share/wut.toolchain.cmake index 0833ac8d..f2a9045c 100644 --- a/share/wut.toolchain.cmake +++ b/share/wut.toolchain.cmake @@ -104,9 +104,15 @@ if(NOT RPLEXPORTGEN_BIN) message(FATAL_ERROR "Could not find rplexportgen") endif() +find_program(RPLIMPORTGEN_BIN NAMES rplimportgen HINTS "${DEVKITPRO}/tools/bin") +if(NOT RPLIMPORTGEN_BIN) + message(FATAL_ERROR "Could not find rplimportgen") +endif() + # Tools set(WUT_ELF2RPL "${ELF2RPL_BIN}" CACHE PATH "") set(WUT_RPLEXPORTGEN "${RPLEXPORTGEN_BIN}" CACHE PATH "") +set(WUT_RPLIMPORTGEN "${RPLIMPORTGEN_BIN}" CACHE PATH "") # Flags set(WUT TRUE)