mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 11:18:08 +00:00
Add precision about cmake cache
This commit is contained in:
parent
052ae25e56
commit
e80083cafa
2 changed files with 6 additions and 1 deletions
|
@ -77,6 +77,11 @@ Switching build modes in CMake is simple. For debug mode, enter at the command l
|
||||||
|
|
||||||
cmake -D CMAKE_BUILD_TYPE:String="Debug" .
|
cmake -D CMAKE_BUILD_TYPE:String="Debug" .
|
||||||
|
|
||||||
|
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first, eg (using GNU find)::
|
||||||
|
|
||||||
|
find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} +
|
||||||
|
CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .
|
||||||
|
|
||||||
In order to run the tests, enter::
|
In order to run the tests, enter::
|
||||||
|
|
||||||
make test
|
make test
|
||||||
|
|
|
@ -18,7 +18,7 @@ them, you can pick one of the following methods:
|
||||||
|
|
||||||
Or, using cmake:
|
Or, using cmake:
|
||||||
|
|
||||||
rm CMakeCache.txt
|
find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} +
|
||||||
CFLAGS="-I$PWD/configs -DPOLARSSL_CONFIG_FILE='<foo.h>'" cmake .
|
CFLAGS="-I$PWD/configs -DPOLARSSL_CONFIG_FILE='<foo.h>'" cmake .
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue