[Cmake-commits] CMake branch, master, updated. d827b9f21d07439baa479e5a0231ab8b54bf1181
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Apr 14 16:12:29 EDT 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, master has been updated
via d827b9f21d07439baa479e5a0231ab8b54bf1181 (commit)
from 33ddb23e67bc2e202468dde59c4fdbb4e04e8873 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d827b9f21d07439baa479e5a0231ab8b54bf1181
commit d827b9f21d07439baa479e5a0231ab8b54bf1181
Author: Alex Neundorf <neundorf at kde.org>
Date: Wed Apr 14 22:09:19 2010 +0200
-add basic search directories for the "Generic" platform
As reported on the mailing list, find_path/file/library/program() basically don't work
at all if CMAKE_FIND_ROOT_PATH is set and searching in the host system directories
is disabled. This patch adds /include, /lib and /bin to the search directories, so they
will be appended to CMAKE_FIND_ROOT_PATH so this will work for the "Generic" platform (embedded
systems without OS)
Alex
diff --git a/Modules/Platform/Generic.cmake b/Modules/Platform/Generic.cmake
index 00508b2..a4e2ec6 100644
--- a/Modules/Platform/Generic.cmake
+++ b/Modules/Platform/Generic.cmake
@@ -9,3 +9,9 @@
# (embedded) targets without operating system usually don't support shared libraries
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
+
+# To help the find_xxx() commands, set at least the following so CMAKE_FIND_ROOT_PATH
+# works at least for some simple cases:
+SET(CMAKE_SYSTEM_INCLUDE_PATH /include )
+SET(CMAKE_SYSTEM_LIBRARY_PATH /lib )
+SET(CMAKE_SYSTEM_PROGRAM_PATH /bin )
-----------------------------------------------------------------------
Summary of changes:
Modules/Platform/Generic.cmake | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list