aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Toolchain_generic.cmake
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-08-12 21:58:24 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-08-12 21:58:24 +0300
commit8f2c2755573b81c1e2c9ef1c42c529d13396d4d2 (patch)
tree99eaa148631402d7fe600fdcd7ba402c74d13ff2 /cmake/Toolchain_generic.cmake
parent09dca22666681470a207083f339083a1a4a8c973 (diff)
parent9e2907afe246b3930d9ae6043a2657c4492f4507 (diff)
downloadegawk-8f2c2755573b81c1e2c9ef1c42c529d13396d4d2.tar.gz
egawk-8f2c2755573b81c1e2c9ef1c42c529d13396d4d2.tar.bz2
egawk-8f2c2755573b81c1e2c9ef1c42c529d13396d4d2.zip
Merge branch 'master' into comment
Diffstat (limited to 'cmake/Toolchain_generic.cmake')
-rw-r--r--cmake/Toolchain_generic.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/Toolchain_generic.cmake b/cmake/Toolchain_generic.cmake
new file mode 100644
index 00000000..91ddc6e7
--- /dev/null
+++ b/cmake/Toolchain_generic.cmake
@@ -0,0 +1,21 @@
+# http://www.cmake.org/Wiki/CmakeMingw
+# http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file
+
+# the name of the target operating system
+SET(CMAKE_SYSTEM_NAME Generic)
+
+# which compilers to use for C and C++
+# Settings for Ubuntu 12.04.1 LTS
+SET(CMAKE_C_COMPILER /usr/bin/gcc)
+
+# here is the target environment located
+# Settings for Ubuntu 12.04.1 LTS
+SET(CMAKE_FIND_ROOT_PATH /usr/)
+
+# adjust the default behaviour of the FIND_XXX() commands:
+# search headers and libraries in the target environment, search
+# programs in the host environment
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+