From 3a6362f1a9f976e7a12949d5387da2a5b8a4efb2 Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Fri, 5 Feb 2021 19:35:35 +0100 Subject: [PATCH] added clang toolchain file --- cmake/clang.cmake | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cmake/clang.cmake diff --git a/cmake/clang.cmake b/cmake/clang.cmake new file mode 100644 index 000000000..93aa0c73f --- /dev/null +++ b/cmake/clang.cmake @@ -0,0 +1,6 @@ +set(CMAKE_C_COMPILER clang) +set(CMAKE_CXX_COMPILER clang++) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -stdlib=libc++")