aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Toolchain_clang.cmake
diff options
context:
space:
mode:
authorStephen Davies <sdavies@sdc.com.au>2014-08-24 10:26:36 +0930
committerStephen Davies <sdavies@sdc.com.au>2014-08-24 10:26:36 +0930
commit8006ef4ca16fa8264dcc1e849783e1f4ce4978a1 (patch)
treee67f3ace9563ebb83d15a438b2124298486d39c0 /cmake/Toolchain_clang.cmake
parent9a7e5828f29d3f5daba5dc5ef1f6b9cd87f596b8 (diff)
parent8f2c2755573b81c1e2c9ef1c42c529d13396d4d2 (diff)
downloadegawk-8006ef4ca16fa8264dcc1e849783e1f4ce4978a1.tar.gz
egawk-8006ef4ca16fa8264dcc1e849783e1f4ce4978a1.tar.bz2
egawk-8006ef4ca16fa8264dcc1e849783e1f4ce4978a1.zip
Merge branch 'comment' of ssh://git.sv.gnu.org/srv/git/gawk into comment
Remote changes?
Diffstat (limited to 'cmake/Toolchain_clang.cmake')
-rw-r--r--cmake/Toolchain_clang.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/Toolchain_clang.cmake b/cmake/Toolchain_clang.cmake
new file mode 100644
index 00000000..89353570
--- /dev/null
+++ b/cmake/Toolchain_clang.cmake
@@ -0,0 +1,19 @@
+# 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++
+SET(CMAKE_C_COMPILER /usr/bin/clang)
+
+# here is the target environment located
+SET(CMAKE_FIND_ROOT_PATH /usr/lib64/clang/3.1)
+
+# 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)
+