diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-04-14 20:09:19 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-04-14 20:09:19 (GMT) |
commit | d827b9f21d07439baa479e5a0231ab8b54bf1181 (patch) | |
tree | 0a35e5b2caee318c63d03fbc9573e051ae13bacd /Modules/Platform/Generic.cmake | |
parent | 33ddb23e67bc2e202468dde59c4fdbb4e04e8873 (diff) | |
download | CMake-d827b9f21d07439baa479e5a0231ab8b54bf1181.zip CMake-d827b9f21d07439baa479e5a0231ab8b54bf1181.tar.gz CMake-d827b9f21d07439baa479e5a0231ab8b54bf1181.tar.bz2 |
-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
Diffstat (limited to 'Modules/Platform/Generic.cmake')
-rw-r--r-- | Modules/Platform/Generic.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
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 ) |