mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 06:42:38 +01:00
cmake: Fix wut-toolchain.cmake with empty CMAKE_{INCLUDE,LIBRARY}_PATH.
This commit is contained in:
parent
bf4ddae73d
commit
d307252772
@ -47,17 +47,27 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
||||
set(DEVKIT_COMPILE_FLAGS "-mcpu=750 -meabi -mhard-float -mno-sdata")
|
||||
set(DEVKIT_LINKER_FLAGS "-nostartfiles -L${DEVKITPPC}/lib")
|
||||
|
||||
set(RPX_COMPILE_FLAGS "\
|
||||
${DEVKIT_COMPILE_FLAGS} \
|
||||
-I${CMAKE_INCLUDE_PATH}")
|
||||
set(RPX_COMPILE_FLAGS "${DEVKIT_COMPILE_FLAGS}")
|
||||
|
||||
set(RPX_LINKER_FLAGS "\
|
||||
${DEVKIT_LINKER_FLAGS} \
|
||||
-pie -fPIE -z common-page-size=64 -z max-page-size=64 -T ${WUT_ROOT}/rules/rpl.ld\
|
||||
-L${WUT_ROOT}/lib -L${CMAKE_LIBRARY_PATH} -Wl,-wrap,__eabi")
|
||||
-L${WUT_ROOT}/lib -Wl,-wrap,__eabi")
|
||||
|
||||
set(ELF_TO_RPL ${WUT_ROOT}/bin/elf2rpl${CMAKE_EXECUTABLE_SUFFIX})
|
||||
|
||||
if(CMAKE_INCLUDE_PATH)
|
||||
set(RPX_COMPILE_FLAGS "\
|
||||
${RPX_COMPILE_FLAGS} \
|
||||
-I${CMAKE_INCLUDE_PATH}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_LIBRARY_PATH)
|
||||
set(RPX_LINKER_FLAGS "\
|
||||
${RPX_LINKER_FLAGS} \
|
||||
-L${CMAKE_LIBRARY_PATH}")
|
||||
endif()
|
||||
|
||||
macro(add_rpx target)
|
||||
add_executable(${ARGV})
|
||||
set_target_properties(${target} PROPERTIES
|
||||
|
Loading…
Reference in New Issue
Block a user