summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Generic.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Generic.cmake')
-rw-r--r--Modules/Platform/Generic.cmake6
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 )