Lines Matching full:cmake
5 <title>Building LLVM with CMake</title>
10 Building LLVM with CMake
16 <li><a href="#usage">Basic CMake usage</a>
19 <li><a href="#freccmake">Frequently-used CMake variables</a></li>
46 <p><a href="http://www.cmake.org/">CMake</a> is a cross-platform
47 build-generator tool. CMake does not build the project, it generates
53 are a CMake novice, start on <a href="#usage">Basic CMake
58 experience with CMake, this is the recommended starting point.
69 <p> We use here the command-line, non-interactive CMake interface </p>
73 <li><p><a href="http://www.cmake.org/cmake/resources/software.html">Download</a>
74 and install CMake. Version 2.8 is the minimum required.</p>
91 <p><tt>cmake path/to/llvm/source/root</tt></p>
94 <p>CMake will detect your development environment, perform a
96 LLVM. CMake will use default values for all build
100 <p>This can fail if CMake can't detect your toolset, or if it
104 correct one for you development environment. CMake will refuse
107 force CMake to use a given build tool, see
116 <a name="usage">Basic CMake usage</a>
122 <p>This section explains basic aspects of CMake, mostly for
126 <p>CMake comes with extensive documentation in the form of html
127 files and on the cmake executable itself. Execute <i>cmake
130 <p>CMake requires to know for which build tool it shall generate
133 environment. Once identified the build tool, CMake uses the
140 <p><tt>cmake --help</tt></p>
147 <p><tt>cmake -G "Visual Studio 8 2005" path/to/llvm/source/root</tt></p>
153 CMake chooses the more specific generator supported by your
155 you must tell this to CMake with the <i>-G</i> option.</p>
172 variables are defined on the CMake command line like this:</p>
175 <p><tt>cmake -DVARIABLE=value path/to/llvm/source</tt></p>
178 <p>You can set a variable after the initial CMake invocation for
182 <p><tt>cmake -UVARIABLE path/to/llvm/source</tt></p>
185 <p>Variables are stored on the CMake cache. This is a file
190 correct to write the variable and the type on the CMake command
194 <p><tt>cmake -DVARIABLE:TYPE=value path/to/llvm/source</tt></p>
199 <a name="freccmake">Frequently-used CMake variables</a>
204 <p>Here are listed some of the CMake variables that are used often,
206 documentation, check the CMake docs or execute <i>cmake
293 macro). For this to work cmake must be invoked before the
390 with CMake. It goes into detailed explanations and may seem
422 <b># We incorporate the CMake features provided by LLVM:</b>
423 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake")
443 <p>Alternativaly, you can utilize CMake's <i>find_package</i>
542 Visual Studio 2008 and Visual Studio 2010 CMake generators. 0 means use all