Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Martin <s.martin49@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/4] toolchainfile.cmake: only search the sysroot for CMake module
Date: Sun,  8 Mar 2015 10:47:22 +0100	[thread overview]
Message-ID: <1425808043-32292-4-git-send-email-s.martin49@gmail.com> (raw)
In-Reply-To: <1425808043-32292-1-git-send-email-s.martin49@gmail.com>

This change prevents CMake from searching outside the sysroot location
for CMake modules when cross-compiling.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>

---
This patch is a better fix to [1] wrt the Arnout's comment [2]

[1] http://lists.busybox.net/pipermail/buildroot/2015-January/117994.html
[2] http://lists.busybox.net/pipermail/buildroot/2015-January/118154.html
---
 support/misc/toolchainfile.cmake.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/support/misc/toolchainfile.cmake.in b/support/misc/toolchainfile.cmake.in
index 816af13..cd41254 100644
--- a/support/misc/toolchainfile.cmake.in
+++ b/support/misc/toolchainfile.cmake.in
@@ -21,6 +21,7 @@ set(CMAKE_INSTALL_SO_NO_EXE 0)
 set(CMAKE_PROGRAM_PATH "${RELOCATED_HOST_DIR}/usr/bin")
 set(CMAKE_FIND_ROOT_PATH "${RELOCATED_HOST_DIR}/@@STAGING_SUBDIR@@")
 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 set(ENV{PKG_CONFIG_SYSROOT_DIR} "${RELOCATED_HOST_DIR}/@@STAGING_SUBDIR@@")
-- 
2.3.2

  parent reply	other threads:[~2015-03-08  9:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-08  9:47 [Buildroot] [PATCH 0/4] CMake package and infra improvements Samuel Martin
2015-03-08  9:47 ` [Buildroot] [PATCH 1/4 v5] package/cmake: make ctest a target package too Samuel Martin
2015-03-08  9:53   ` Baruch Siach
2015-03-08 11:29     ` Samuel Martin
2015-03-15 17:41   ` Thomas Petazzoni
2015-03-08  9:47 ` [Buildroot] [PATCH 2/4 v2] package/cmake: only build what is necessary Samuel Martin
2015-03-15 17:52   ` Thomas Petazzoni
2015-03-08  9:47 ` Samuel Martin [this message]
2015-03-08 10:23   ` [Buildroot] [PATCH 3/4] toolchainfile.cmake: only search the sysroot for CMake module Yegor Yefremov
2015-03-16 21:17   ` Thomas Petazzoni
2015-03-08  9:47 ` [Buildroot] [PATCH 4/4] toolchainfile.cmake: set CXX variables wrt BR2_INSTALL_LIBSTDCPP value Samuel Martin
2015-03-16 21:24   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1425808043-32292-4-git-send-email-s.martin49@gmail.com \
    --to=s.martin49@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox