Ticket #34545: CMakeCXXCompiler.cmake

File CMakeCXXCompiler.cmake, 1.5 KB (added by dragan.glumac@…, 12 years ago)

CMakeCXXCompiler.cmake with additional Clang flags.

Line 
1SET(CMAKE_CXX_COMPILER "/usr/bin/clang++")
2SET(CMAKE_CXX_COMPILER_ARG1 "")
3SET(CMAKE_CXX_COMPILER_ID "Clang")
4SET(CMAKE_CXX_COMPILER_VERSION "3.1.0")
5SET(CMAKE_CXX_PLATFORM_ID "Darwin")
6
7SET(CMAKE_AR "/usr/bin/ar")
8SET(CMAKE_RANLIB "/usr/bin/ranlib")
9SET(CMAKE_LINKER "/usr/bin/ld")
10SET(CMAKE_COMPILER_IS_GNUCXX )
11
12# -- DG --
13SET(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
14# --------
15
16SET(CMAKE_CXX_COMPILER_LOADED 1)
17SET(CMAKE_COMPILER_IS_MINGW )
18SET(CMAKE_COMPILER_IS_CYGWIN )
19IF(CMAKE_COMPILER_IS_CYGWIN)
20  SET(CYGWIN 1)
21  SET(UNIX 1)
22ENDIF(CMAKE_COMPILER_IS_CYGWIN)
23
24SET(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
25
26IF(CMAKE_COMPILER_IS_MINGW)
27  SET(MINGW 1)
28ENDIF(CMAKE_COMPILER_IS_MINGW)
29SET(CMAKE_CXX_COMPILER_ID_RUN 1)
30SET(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
31SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
32SET(CMAKE_CXX_LINKER_PREFERENCE 30)
33SET(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
34
35# Save compiler ABI information.
36SET(CMAKE_CXX_SIZEOF_DATA_PTR "8")
37SET(CMAKE_CXX_COMPILER_ABI "")
38SET(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
39
40IF(CMAKE_CXX_SIZEOF_DATA_PTR)
41  SET(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
42ENDIF(CMAKE_CXX_SIZEOF_DATA_PTR)
43
44IF(CMAKE_CXX_COMPILER_ABI)
45  SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
46ENDIF(CMAKE_CXX_COMPILER_ABI)
47
48IF(CMAKE_CXX_LIBRARY_ARCHITECTURE)
49  SET(CMAKE_LIBRARY_ARCHITECTURE "")
50ENDIF()
51
52SET(CMAKE_CXX_HAS_ISYSROOT "")
53
54
55SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
56SET(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "")