aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/native
diff options
context:
space:
mode:
authorStephan Sundermann <stephansundermann@gmail.com>2024-01-28 00:45:41 +0100
committerStephan Sundermann <stephansundermann@gmail.com>2024-01-28 02:04:35 +0100
commit1be752ec06cf3238714eaca57e64c778278bf02e (patch)
tree09055e57891bd05d00c6457a1dcab20133b09a9b /tools/depends/native
parent41c4a59fc315df1d4c97c591188fb2cde216851f (diff)
[cmake] Fix native toolchain including target root path
Diffstat (limited to 'tools/depends/native')
-rw-r--r--tools/depends/native/Toolchain-Native.cmake.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/depends/native/Toolchain-Native.cmake.in b/tools/depends/native/Toolchain-Native.cmake.in
index cc4bd16631..4579f79210 100644
--- a/tools/depends/native/Toolchain-Native.cmake.in
+++ b/tools/depends/native/Toolchain-Native.cmake.in
@@ -51,8 +51,7 @@ set(CMAKE_EXE_LINKER_FLAGS "@host_includes@ -L@prefix@/@tool_dir@/lib")
set(CMAKE_FIND_ROOT_PATH @prefix@/@tool_dir@)
set(CMAKE_LIBRARY_PATH @prefix@/@tool_dir@/lib)
if(NOT "@use_toolchain@" STREQUAL "")
- list(APPEND CMAKE_FIND_ROOT_PATH @use_toolchain@ @use_toolchain@/@use_host@ @use_toolchain@/@use_host@/sysroot @use_toolchain@/@use_host@/sysroot/usr @use_toolchain@/@use_host@/libc @use_toolchain@/lib/@use_host@/sysroot @use_toolchain@/usr @use_toolchain@/sysroot/usr)
- set(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH}:@use_toolchain@/usr/lib/@use_host@:@use_toolchain@/lib/@use_host@")
+ list(APPEND CMAKE_FIND_ROOT_PATH @use_toolchain@)
endif()
if(NOT "@host_sysroot@" STREQUAL "")
list(APPEND CMAKE_FIND_ROOT_PATH @host_sysroot@ @host_sysroot@/usr)