You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -79,24 +79,23 @@ To maintain a pristine source tree, CMake encourages to perform an out-of-source
79
79
80
80
### Building on POSIX systems
81
81
82
-
$ mkdir build && cd build
83
-
$ cmake ..
84
-
$ cmake --build .
85
-
$ ctest # run the test suite
86
-
$ sudo cmake --install . # optional
82
+
$ cmake -B build
83
+
$ cmake --build build
84
+
$ ctest --test-dir build # run the test suite
85
+
$ sudo cmake --install build # optional
87
86
88
-
To compile optional modules (such as Schnorr signatures), you need to run `cmake` with additional flags (such as `-DSECP256K1_ENABLE_MODULE_SCHNORRSIG=ON`). Run `cmake .. -LH` to see the full list of available flags.
87
+
To compile optional modules (such as Schnorr signatures), you need to run `cmake` with additional flags (such as `-DSECP256K1_ENABLE_MODULE_SCHNORRSIG=ON`). Run `cmake -B build -LH` or `ccmake -B build` to see the full list of available flags.
89
88
90
89
### Cross compiling
91
90
92
91
To alleviate issues with cross compiling, preconfigured toolchain files are available in the `cmake` directory.
To cross compile for Android with [NDK](https://developer.android.com/ndk/guides/cmake) (using NDK's toolchain file, and assuming the `ANDROID_NDK_ROOT` environment variable has been set):
0 commit comments