wut.toolchain.cmake: Add internal library directories to find path

This is useful for porting or libraries that do things like `find_library(m)`.
This commit is contained in:
Ash Logan 2019-12-01 10:24:13 +11:00
parent ed2482cad4
commit 77ed28d097

View File

@ -25,7 +25,13 @@ else()
endif()
# Setup root to exclude host system headers + libraries
set(CMAKE_FIND_ROOT_PATH "${DEVKITPPC}" "${DEVKITPRO}/tools" "${DEVKITPRO}/portlibs/wiiu" "${DEVKITPRO}/portlibs/ppc" "${WUT_ROOT}/share")
set(CMAKE_FIND_ROOT_PATH
"${DEVKITPPC}"
"${DEVKITPPC}/powerpc-eabi"
"${DEVKITPRO}/tools"
"${DEVKITPRO}/portlibs/wiiu"
"${DEVKITPRO}/portlibs/ppc"
"${WUT_ROOT}/share")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)