Skip to content
Newer
Older
100644 277 lines (229 sloc) 9.52 KB
67410b3 Optionally, Clang now builds using LLVM as an external library.
Oscar Fuentes authored Feb 3, 2011
1 # If we are not building as a part of LLVM, build Clang as an
2 # standalone project, using LLVM as an external library:
3 if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
4 project(Clang)
5 cmake_minimum_required(VERSION 2.8)
6
7 set(CLANG_PATH_TO_LLVM_SOURCE "" CACHE PATH
8 "Path to LLVM source code. Not necessary if using an installed LLVM.")
9 set(CLANG_PATH_TO_LLVM_BUILD "" CACHE PATH
10 "Path to the directory where LLVM was built or installed.")
11
12 if( CLANG_PATH_TO_LLVM_SOURCE )
13 if( NOT EXISTS "${CLANG_PATH_TO_LLVM_SOURCE}/cmake/config-ix.cmake" )
14 message(FATAL_ERROR "Please set CLANG_PATH_TO_LLVM_SOURCE to the root directory of LLVM source code.")
15 else()
16 get_filename_component(LLVM_MAIN_SRC_DIR ${CLANG_PATH_TO_LLVM_SOURCE}
17 ABSOLUTE)
18 list(APPEND CMAKE_MODULE_PATH "${LLVM_MAIN_SRC_DIR}/cmake/modules")
19 endif()
20 endif()
21
6ee5b93 @pcc Clang-side build system infrastructure for multiple tblgens.
pcc authored Oct 6, 2011
22 if( NOT EXISTS "${CLANG_PATH_TO_LLVM_BUILD}/bin/llvm-tblgen${CMAKE_EXECUTABLE_SUFFIX}" )
23 # Looking for bin/Debug/llvm-tblgen is a complete hack. How can we get
17031a2 @DougGregor Tweak the CMake build so that building a project just containing Clang
DougGregor authored Jul 14, 2011
24 # around this?
6ee5b93 @pcc Clang-side build system infrastructure for multiple tblgens.
pcc authored Oct 6, 2011
25 if( NOT EXISTS "${CLANG_PATH_TO_LLVM_BUILD}/bin/Debug/llvm-tblgen${CMAKE_EXECUTABLE_SUFFIX}" )
17031a2 @DougGregor Tweak the CMake build so that building a project just containing Clang
DougGregor authored Jul 14, 2011
26 message(FATAL_ERROR "Please set CLANG_PATH_TO_LLVM_BUILD to a directory containing a LLVM build.")
27 endif()
67410b3 Optionally, Clang now builds using LLVM as an external library.
Oscar Fuentes authored Feb 3, 2011
28 endif()
29
30 list(APPEND CMAKE_MODULE_PATH "${CLANG_PATH_TO_LLVM_BUILD}/share/llvm/cmake")
31
32 get_filename_component(PATH_TO_LLVM_BUILD ${CLANG_PATH_TO_LLVM_BUILD}
33 ABSOLUTE)
34
35 include(AddLLVM)
36 include(TableGen)
5ec8a4d Reflect rename on LLVM cmake file.
Oscar Fuentes authored Apr 10, 2011
37 include("${CLANG_PATH_TO_LLVM_BUILD}/share/llvm/cmake/LLVMConfig.cmake")
67410b3 Optionally, Clang now builds using LLVM as an external library.
Oscar Fuentes authored Feb 3, 2011
38 include(HandleLLVMOptions)
39
40 set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
41
42 set(LLVM_MAIN_INCLUDE_DIR "${LLVM_MAIN_SRC_DIR}/include")
43 set(LLVM_BINARY_DIR ${CMAKE_BINARY_DIR})
44
b641f08 Add current binary and source directories to the header search list
Oscar Fuentes authored Feb 14, 2011
45 set(CMAKE_INCLUDE_CURRENT_DIR ON)
67410b3 Optionally, Clang now builds using LLVM as an external library.
Oscar Fuentes authored Feb 3, 2011
46 include_directories("${PATH_TO_LLVM_BUILD}/include" "${LLVM_MAIN_INCLUDE_DIR}")
47 link_directories("${PATH_TO_LLVM_BUILD}/lib")
48
6ee5b93 @pcc Clang-side build system infrastructure for multiple tblgens.
pcc authored Oct 6, 2011
49 if( EXISTS "${CLANG_PATH_TO_LLVM_BUILD}/bin/llvm-tblgen${CMAKE_EXECUTABLE_SUFFIX}" )
50 set(LLVM_TABLEGEN_EXE "${PATH_TO_LLVM_BUILD}/bin/llvm-tblgen${CMAKE_EXECUTABLE_SUFFIX}")
17031a2 @DougGregor Tweak the CMake build so that building a project just containing Clang
DougGregor authored Jul 14, 2011
51 else()
52 # FIXME: This is an utter hack.
6ee5b93 @pcc Clang-side build system infrastructure for multiple tblgens.
pcc authored Oct 6, 2011
53 set(LLVM_TABLEGEN_EXE "${PATH_TO_LLVM_BUILD}/bin/Debug/llvm-tblgen${CMAKE_EXECUTABLE_SUFFIX}")
17031a2 @DougGregor Tweak the CMake build so that building a project just containing Clang
DougGregor authored Jul 14, 2011
54 endif()
67410b3 Optionally, Clang now builds using LLVM as an external library.
Oscar Fuentes authored Feb 3, 2011
55
56 set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
57 set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
58 set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
59
718b01d @jyasskin Add CMake support to the clang unittests.
jyasskin authored Feb 15, 2011
60 set( CLANG_BUILT_STANDALONE 1 )
67410b3 Optionally, Clang now builds using LLVM as an external library.
Oscar Fuentes authored Feb 3, 2011
61 endif()
34d9ffa @DougGregor The CMake build system now derives the Clang version number from VER.
DougGregor authored Sep 16, 2009
62
2100fe9 Moved here from LLVM Clang's configuration options and related macros.
Oscar Fuentes authored Feb 3, 2011
63 set(CLANG_RESOURCE_DIR "" CACHE STRING
64 "Relative directory from the Clang binary to its resource files.")
65
66 set(C_INCLUDE_DIRS "" CACHE STRING
67 "Colon separated list of directories clang will search for headers.")
68
f752d5b CMake: add support for CLANG_VENDOR. PR9966.
Oscar Fuentes authored May 20, 2011
69 set(CLANG_VENDOR "" CACHE STRING
70 "Vendor-specific text for showing with version information.")
71
72 if( CLANG_VENDOR )
73 add_definitions( -DCLANG_VENDOR="${CLANG_VENDOR} " )
74 endif()
75
91ee77a @ddunbar Add CLANG_{SOURCE,BINARY}_DIR cmake variables.
ddunbar authored Sep 17, 2009
76 set(CLANG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
77 set(CLANG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
78
63e9c0d @chandlerc Prevent accidental in-source builds with CMake, and detect when there…
chandlerc authored Apr 17, 2010
79 if( CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE )
80 message(FATAL_ERROR "In-source builds are not allowed. CMake would overwrite "
81 "the makefiles distributed with LLVM. Please create a directory and run cmake "
82 "from there, passing the path to this source directory as the last argument. "
83 "This process created the file `CMakeCache.txt' and the directory "
84 "`CMakeFiles'. Please delete them.")
85 endif()
86
87 if( NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR )
88 file(GLOB_RECURSE
89 tablegenned_files_on_include_dir
90 "${CLANG_SOURCE_DIR}/include/clang/*.inc")
91 if( tablegenned_files_on_include_dir )
92 message(FATAL_ERROR "Apparently there is a previous in-source build, "
93 "probably as the result of running `configure' and `make' on "
94 "${CLANG_SOURCE_DIR}. This may cause problems. The suspicious files are:\n"
95 "${tablegenned_files_on_include_dir}\nPlease clean the source directory.")
96 endif()
97 endif()
98
c4b8e92 @ddunbar clang: Derive version name from LLVM unless specified explicitly. Thi…
ddunbar authored Jun 25, 2010
99 # Compute the Clang version from the LLVM version.
5a7f349 @Bigcheese CMake: Update to use standard CMake dependency tracking facilities in…
Bigcheese authored Sep 10, 2010
100 string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION
c4b8e92 @ddunbar clang: Derive version name from LLVM unless specified explicitly. Thi…
ddunbar authored Jun 25, 2010
101 ${PACKAGE_VERSION})
34d9ffa @DougGregor The CMake build system now derives the Clang version number from VER.
DougGregor authored Sep 16, 2009
102 message(STATUS "Clang version: ${CLANG_VERSION}")
7f7b748 @DougGregor CMake: Improve installation of Clang
DougGregor authored Aug 23, 2009
103
a510767 @ddunbar build: Add a generated Version.inc file instead of duplicating inform…
ddunbar authored Jun 25, 2010
104 string(REGEX REPLACE "([0-9]+)\\.[0-9]+(\\.[0-9]+)?" "\\1" CLANG_VERSION_MAJOR
105 ${CLANG_VERSION})
106 string(REGEX REPLACE "[0-9]+\\.([0-9]+)(\\.[0-9]+)?" "\\1" CLANG_VERSION_MINOR
107 ${CLANG_VERSION})
108 if (${CLANG_VERSION} MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+")
109 set(CLANG_HAS_VERSION_PATCHLEVEL 1)
110 string(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" CLANG_VERSION_PATCHLEVEL
111 ${CLANG_VERSION})
112 else()
113 set(CLANG_HAS_VERSION_PATCHLEVEL 0)
114 endif()
115
116 # Configure the Version.inc file.
117 configure_file(
118 ${CMAKE_CURRENT_SOURCE_DIR}/include/clang/Basic/Version.inc.in
119 ${CMAKE_CURRENT_BINARY_DIR}/include/clang/Basic/Version.inc)
120
9df3faf @DougGregor Make the GCC warning flags passed by CMake the same as the warning fl…
DougGregor authored Sep 18, 2009
121 # Add appropriate flags for GCC
c5cd252 Handle gcc-compatible compilers (such as clang) the same way we handle
Oscar Fuentes authored May 11, 2011
122 if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
827c573 Copied some flags from the Makefile build to the list of GCC flags.
Oscar Fuentes authored Oct 15, 2010
123 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings")
9df3faf @DougGregor Make the GCC warning flags passed by CMake the same as the warning fl…
DougGregor authored Sep 18, 2009
124 endif ()
125
eb5dc49 @DougGregor Teach the PrintFunctionNames example to be a proper module, so that
DougGregor authored Jun 8, 2010
126 if (APPLE)
127 set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
128 endif ()
129
2100fe9 Moved here from LLVM Clang's configuration options and related macros.
Oscar Fuentes authored Feb 3, 2011
130 configure_file(
131 ${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake
132 ${CLANG_BINARY_DIR}/include/clang/Config/config.h)
133
c8da1ec New function for tablegenning: clang_tablegen.
Oscar Fuentes authored Feb 20, 2011
134 include(LLVMParseArguments)
135
136 function(clang_tablegen)
137 # Syntax:
138 # clang_tablegen output-file [tablegen-arg ...] SOURCE source-file
139 # [[TARGET cmake-target-name] [DEPENDS extra-dependency ...]]
140 #
141 # Generates a custom command for invoking tblgen as
142 #
143 # tblgen source-file -o=output-file tablegen-arg ...
144 #
145 # and, if cmake-target-name is provided, creates a custom target for
146 # executing the custom command depending on output-file. It is
147 # possible to list more files to depend after DEPENDS.
148
149 parse_arguments( CTG "SOURCE;TARGET;DEPENDS" "" ${ARGN} )
150
151 if( NOT CTG_SOURCE )
152 message(FATAL_ERROR "SOURCE source-file required by clang_tablegen")
153 endif()
154
155 set( LLVM_TARGET_DEFINITIONS ${CTG_SOURCE} )
51d7777 @pcc Add the Clang tblgen backends to Clang, and flip the switch to cause
pcc authored Oct 6, 2011
156 tablegen( CLANG ${CTG_DEFAULT_ARGS} )
c8da1ec New function for tablegenning: clang_tablegen.
Oscar Fuentes authored Feb 20, 2011
157
158 list( GET CTG_DEFAULT_ARGS 0 output_file )
159 if( CTG_TARGET )
160 add_custom_target( ${CTG_TARGET} DEPENDS ${output_file} ${CTG_DEPENDS} )
a3f787c Put targets on folders, if the IDE supports the feature.
Oscar Fuentes authored Feb 20, 2011
161 set_target_properties( ${CTG_TARGET} PROPERTIES FOLDER "Clang tablegenning")
c8da1ec New function for tablegenning: clang_tablegen.
Oscar Fuentes authored Feb 20, 2011
162 endif()
163 endfunction(clang_tablegen)
164
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
165 macro(add_clang_library name)
9917401 Use some of the llvm cmake infraestructure. This takes care of
Oscar Fuentes authored Jan 3, 2011
166 llvm_process_sources(srcs ${ARGN})
bf5de3f @tkremenek CMake: Also include header files in target when the generator is 'XCo…
tkremenek authored Mar 25, 2009
167 if(MSVC_IDE OR XCODE)
fe2f808 @Stilgar84 Add header files to CMake build solution. It use globing so it doesn'…
Stilgar84 authored Nov 2, 2008
168 string( REGEX MATCHALL "/[^/]+" split_path ${CMAKE_CURRENT_SOURCE_DIR})
169 list( GET split_path -1 dir)
5a7f349 @Bigcheese CMake: Update to use standard CMake dependency tracking facilities in…
Bigcheese authored Sep 10, 2010
170 file( GLOB_RECURSE headers
b26bd74 @tkremenek Add hack to CMakeLists.txt so that StaticAnalyzer libraries find thei…
tkremenek authored Feb 10, 2011
171 ../../../include/clang/StaticAnalyzer${dir}/*.h
172 ../../../include/clang/StaticAnalyzer${dir}/*.td
173 ../../../include/clang/StaticAnalyzer${dir}/*.def
f5216f2 @DougGregor Make sure that .td and .def files get into the list of headers in a C…
DougGregor authored Jun 17, 2009
174 ../../include/clang${dir}/*.h
175 ../../include/clang${dir}/*.td
176 ../../include/clang${dir}/*.def)
fe2f808 @Stilgar84 Add header files to CMake build solution. It use globing so it doesn'…
Stilgar84 authored Nov 2, 2008
177 set(srcs ${srcs} ${headers})
bf5de3f @tkremenek CMake: Also include header files in target when the generator is 'XCo…
tkremenek authored Mar 25, 2009
178 endif(MSVC_IDE OR XCODE)
eb5dc49 @DougGregor Teach the PrintFunctionNames example to be a proper module, so that
DougGregor authored Jun 8, 2010
179 if (MODULE)
180 set(libkind MODULE)
181 elseif (SHARED_LIBRARY)
ac47bc7 @DougGregor CMake build support for libCIndex and c-index-test. The indexing tests
DougGregor authored Sep 25, 2009
182 set(libkind SHARED)
183 else()
184 set(libkind)
185 endif()
186 add_library( ${name} ${libkind} ${srcs} )
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
187 if( LLVM_COMMON_DEPENDS )
188 add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
189 endif( LLVM_COMMON_DEPENDS )
fb767c8 CMake: removed some unnecesary conditionals from add_clang_library.
Oscar Fuentes authored Mar 29, 2011
190
191 target_link_libraries( ${name} ${LLVM_USED_LIBS} )
192 llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
193 target_link_libraries( ${name} ${LLVM_COMMON_LIBS} )
194 link_system_libs( ${name} )
195
a393e9e @DougGregor Build system changes to use TableGen to generate the various
DougGregor authored Mar 16, 2009
196 add_dependencies(${name} ClangDiagnosticCommon)
1c212a0 @Stilgar84 Add /Za to all MSVC build of a clang libraries.
Stilgar84 authored Dec 13, 2008
197 if(MSVC)
198 get_target_property(cflag ${name} COMPILE_FLAGS)
199 if(NOT cflag)
200 set(cflag "")
201 endif(NOT cflag)
202 set(cflag "${cflag} /Za")
203 set_target_properties(${name} PROPERTIES COMPILE_FLAGS ${cflag})
204 endif(MSVC)
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
205 install(TARGETS ${name}
bfb06ea CMake: Append LLVM_LIBDIR_SUFFIX to library destination.
Oscar Fuentes authored Oct 27, 2009
206 LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
755f3df CMake: New variable LLVM_LIBDIR_SUFFIX.
Oscar Fuentes authored Jun 12, 2009
207 ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
a3f787c Put targets on folders, if the IDE supports the feature.
Oscar Fuentes authored Feb 20, 2011
208 set_target_properties(${name} PROPERTIES FOLDER "Clang libraries")
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
209 endmacro(add_clang_library)
210
211 macro(add_clang_executable name)
9917401 Use some of the llvm cmake infraestructure. This takes care of
Oscar Fuentes authored Jan 3, 2011
212 add_llvm_executable( ${name} ${ARGN} )
a3f787c Put targets on folders, if the IDE supports the feature.
Oscar Fuentes authored Feb 20, 2011
213 set_target_properties(${name} PROPERTIES FOLDER "Clang executables")
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
214 endmacro(add_clang_executable)
215
617508f Fix some issues with include directories: remove a duplicate and put
Oscar Fuentes authored Mar 17, 2011
216 include_directories(BEFORE
a393e9e @DougGregor Build system changes to use TableGen to generate the various
DougGregor authored Mar 16, 2009
217 ${CMAKE_CURRENT_BINARY_DIR}/include
617508f Fix some issues with include directories: remove a duplicate and put
Oscar Fuentes authored Mar 17, 2011
218 ${CMAKE_CURRENT_SOURCE_DIR}/include
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
219 )
220
82cac29 Rather than excluding quite some things, and still installing
Oscar Fuentes authored Oct 27, 2009
221 install(DIRECTORY include/
222 DESTINATION include
223 FILES_MATCHING
224 PATTERN "*.def"
225 PATTERN "*.h"
bc6ec75 @lattner "a patch telling cmake to install clang headers in the target
lattner authored Nov 11, 2008
226 PATTERN ".svn" EXCLUDE
227 )
228
ec700a6 @krajaratnam Include *.inc in install target
krajaratnam authored Apr 1, 2010
229 install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/
230 DESTINATION include
231 FILES_MATCHING
d7d5bb1 @lattner exclude cmake build directories from being installed
lattner authored Apr 25, 2010
232 PATTERN "CMakeFiles" EXCLUDE
ec700a6 @krajaratnam Include *.inc in install target
krajaratnam authored Apr 1, 2010
233 PATTERN "*.inc"
234 )
235
2100fe9 Moved here from LLVM Clang's configuration options and related macros.
Oscar Fuentes authored Feb 3, 2011
236 add_definitions( -D_GNU_SOURCE -DHAVE_CLANG_CONFIG_H )
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
237
8435bf9 @DougGregor CMake: add version information into the clang executable and libclang
DougGregor authored Feb 25, 2011
238 # Clang version information
239 set(CLANG_EXECUTABLE_VERSION
240 "${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}" CACHE STRING
241 "Version number that will be placed into the clang executable, in the form XX.YY")
242 set(LIBCLANG_LIBRARY_VERSION
243 "${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}" CACHE STRING
244 "Version number that will be placed into the libclang library , in the form XX.YY")
245 mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)
246
51d7777 @pcc Add the Clang tblgen backends to Clang, and flip the switch to cause
pcc authored Oct 6, 2011
247 add_subdirectory(utils/TableGen)
8435bf9 @DougGregor CMake: add version information into the clang executable and libclang
DougGregor authored Feb 25, 2011
248
e26198c @pcc Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are built
pcc authored Jan 26, 2012
249 option(CLANG_BUILD_EXAMPLES "Build CLANG example programs by default." OFF)
250 add_subdirectory(examples)
45088e2 @ddunbar Add optional CMake build for Clang examples, patch by Kovarththanan R…
ddunbar authored Nov 17, 2009
251
a393e9e @DougGregor Build system changes to use TableGen to generate the various
DougGregor authored Mar 16, 2009
252 add_subdirectory(include)
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
253 add_subdirectory(lib)
cbcd98b @ddunbar Add CMake files for tools/driver; I am just guessing here, can someon…
ddunbar authored Mar 24, 2009
254 add_subdirectory(tools)
48263ba @Bigcheese CMake: Add runtime dir.
Bigcheese authored Dec 16, 2010
255 add_subdirectory(runtime)
d2f4e5e CMake: Builds and installs clang binary and libs (no docs yet). It
Oscar Fuentes authored Oct 26, 2008
256
257 # TODO: docs.
670d6ed @DougGregor LLVM_INCLUDE_TESTS applies to unit tests, not the normal Clang tests
DougGregor authored Feb 25, 2011
258 add_subdirectory(test)
718b01d @jyasskin Add CMake support to the clang unittests.
jyasskin authored Feb 15, 2011
259
670d6ed @DougGregor LLVM_INCLUDE_TESTS applies to unit tests, not the normal Clang tests
DougGregor authored Feb 25, 2011
260 if( LLVM_INCLUDE_TESTS )
fd68157 @DougGregor Don't include Clang's unit tests if LLVM's unit tests aren't being built
DougGregor authored Feb 25, 2011
261 if( NOT CLANG_BUILT_STANDALONE )
262 add_subdirectory(unittests)
263 endif()
718b01d @jyasskin Add CMake support to the clang unittests.
jyasskin authored Feb 15, 2011
264 endif()
792f975 @chapuni CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.
chapuni authored Feb 16, 2011
265
266 # Workaround for MSVS10 to avoid the Dialog Hell
267 # FIXME: This could be removed with future version of CMake.
268 if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )
269 set(CLANG_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/Clang.sln")
270 if( EXISTS "${CLANG_SLN_FILENAME}" )
271 file(APPEND "${CLANG_SLN_FILENAME}" "\n# This should be regenerated!\n")
272 endif()
273 endif()
fc61427 Fix cmake for r136702 (at least for the most part). Chandler has been…
Chad Rosier authored Aug 2, 2011
274
275 set(BUG_REPORT_URL "http://llvm.org/bugs/" CACHE STRING
276 "Default URL where bug reports are to be submitted.")
Something went wrong with that request. Please try again.