mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:44:19 +01:00
wut.toolchain.cmake: switch pkg-config to find_program
This commit is contained in:
parent
586c65b2d7
commit
dcf341e2b6
@ -38,7 +38,10 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
||||
|
||||
# Set pkg-config for the same
|
||||
set(PKG_CONFIG_EXECUTABLE "${DEVKITPRO}/portlibs/wiiu/bin/powerpc-eabi-pkg-config")
|
||||
find_program(PKG_CONFIG_EXECUTABLE NAMES powerpc-eabi-pkg-config HINTS "${DEVKITPRO}/portlibs/wiiu/bin")
|
||||
if (NOT PKG_CONFIG_EXECUTABLE)
|
||||
message(WARNING "Could not find powerpc-eabi-pkg-config: try installing wiiu-pkg-config")
|
||||
endif()
|
||||
|
||||
# Find compilers
|
||||
find_program(DEVKITPPC_GCC NAMES powerpc-eabi-gcc HINTS "${DEVKITPPC}/bin")
|
||||
|
Loading…
Reference in New Issue
Block a user