diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-12 21:58:24 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-12 21:58:24 +0300 |
commit | 8f2c2755573b81c1e2c9ef1c42c529d13396d4d2 (patch) | |
tree | 99eaa148631402d7fe600fdcd7ba402c74d13ff2 /cmake/Toolchain_clang.cmake | |
parent | 09dca22666681470a207083f339083a1a4a8c973 (diff) | |
parent | 9e2907afe246b3930d9ae6043a2657c4492f4507 (diff) | |
download | egawk-8f2c2755573b81c1e2c9ef1c42c529d13396d4d2.tar.gz egawk-8f2c2755573b81c1e2c9ef1c42c529d13396d4d2.tar.bz2 egawk-8f2c2755573b81c1e2c9ef1c42c529d13396d4d2.zip |
Merge branch 'master' into comment
Diffstat (limited to 'cmake/Toolchain_clang.cmake')
-rw-r--r-- | cmake/Toolchain_clang.cmake | 19 |
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) + |