Lines Matching full:cmake
13 …l environment variables such as `CC` and `CFLAGS` when using the Make and CMake build system (see …
34 - CMake
37 …lopment are CMake and GNU Make. Those systems are always complete and up-to-date. The others shoul…
39 The Make and CMake build systems create three libraries: libmbedcrypto, libmbedx509, and libmbedtls…
45 * GNU Make or a build tool that CMake supports.
54 …easily move between different platforms. Users who need more features are recommended to use CMake.
82 ### CMake subsection
84 In order to build the source using CMake in a separate directory (recommended), just enter at the c…
87 cmake /path/to/mbedtls_source
88 cmake --build .
96 cmake -DENABLE_TESTING=Off /path/to/mbedtls_source
102 To configure CMake for building shared libraries, use:
104 cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On /path/to/mbedtls_source
106 There are many different build modes available within the CMake buildsystem. Most of them are avail…
117 Switching build modes in CMake is simple. For debug mode, enter at the command line:
119 cmake -D CMAKE_BUILD_TYPE=Debug /path/to/mbedtls_source
121 To list other available CMake options, use:
123 cmake -LH
125 Note that, with CMake, you can't adjust the compiler or its flags after the
126 initial invocation of cmake. This means that `CC=your_cc make` and `make
128 These variables need to be adjusted when invoking cmake for the first time,
131 CC=your_cc cmake /path/to/mbedtls_source
133 If you already invoked cmake and want to change those settings, you need to
141 cmake .
145 CMake cache. This can be done with the following command using GNU find:
147 find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} +
151 CC=your_cc cmake .
154 Regarding variables, also note that if you set CFLAGS when invoking cmake,
155 your value of CFLAGS doesn't override the content provided by cmake (depending
160 Mbed TLS supports being built as a CMake subproject. One can
161 use `add_subdirectory()` from a parent CMake project to include Mbed TLS as a