cmake: Find WUT_RPLIMPORTGEN in toolchain.

This commit is contained in:
James Benton 2020-06-06 15:22:56 +01:00 committed by James
parent b168032339
commit a3eefa84e6

View File

@ -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)