From 434fbe89e81a1fe06d92676be72ab7f862cc3f53 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 19 Mar 2023 00:32:54 +0000 Subject: gentoo auto-resync : 19:03:2023 - 00:32:54 --- eclass/cmake.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/cmake.eclass') diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 76c63977aa07..03f2517c5b56 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -489,7 +489,7 @@ cmake_src_configure() { # When cross-compiling with a sysroot (e.g. with crossdev's emerge wrappers) # we need to tell cmake to use libs/headers from the sysroot but programs from / only. cat >> "${toolchain_file}" <<- _EOF_ || die - set(CMAKE_FIND_ROOT_PATH "${SYSROOT}") + set(CMAKE_SYSROOT "${ESYSROOT}") set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -- cgit v1.2.3