summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/config/toolchain/clang.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'HDF5Examples/config/toolchain/clang.cmake')
-rw-r--r--HDF5Examples/config/toolchain/clang.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/HDF5Examples/config/toolchain/clang.cmake b/HDF5Examples/config/toolchain/clang.cmake
new file mode 100644
index 0000000..2d35641
--- /dev/null
+++ b/HDF5Examples/config/toolchain/clang.cmake
@@ -0,0 +1,16 @@
+# Uncomment the following to use cross-compiling
+#set (CMAKE_SYSTEM_NAME Linux)
+
+set (CMAKE_COMPILER_VENDOR "clang")
+
+if(WIN32)
+ set (CMAKE_C_COMPILER clang-cl)
+ set (CMAKE_CXX_COMPILER clang-cl)
+else()
+ set (CMAKE_C_COMPILER clang)
+ set (CMAKE_CXX_COMPILER clang++)
+endif()
+set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+# the following is used if cross-compiling
+set (CMAKE_CROSSCOMPILING_EMULATOR "")