added clang toolchain file
This commit is contained in:
parent
2009598cdc
commit
3a6362f1a9
1 changed files with 6 additions and 0 deletions
6
cmake/clang.cmake
Normal file
6
cmake/clang.cmake
Normal file
|
@ -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++")
|
Loading…
Reference in a new issue