summaryrefslogtreecommitdiffstats
path: root/config/cmake/toolchain.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/cmake/toolchain.cmake.in')
-rw-r--r--config/cmake/toolchain.cmake.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/cmake/toolchain.cmake.in b/config/cmake/toolchain.cmake.in
new file mode 100644
index 000000000..ec3831e30
--- /dev/null
+++ b/config/cmake/toolchain.cmake.in
@@ -0,0 +1,21 @@
+# http://www.cmake.org/Wiki/CmakeEldk
+
+# this one is important
+SET(CMAKE_SYSTEM_NAME @SYSTEM_NAME@)
+
+#this one not so much
+SET(CMAKE_SYSTEM_VERSION @SYSTEM_VERSION@)
+
+# specify the cross compiler
+SET(CMAKE_C_COMPILER @CC@)
+SET(CMAKE_CXX_COMPILER @CXX@)
+
+# where is the target environment
+SET(CMAKE_FIND_ROOT_PATH @SYSROOT_TOOLCHAIN@ @SYSROOT_TARGET@)
+
+# search for programs in the build host directories
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+
+# for libraries and headers in the target directories
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)