Skip to content

Commit 7ad478c

Browse files
committed
📝 Use generator-agnostic CMake commands in README.
1 parent a5a9d8d commit 7ad478c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,19 @@ bspline-fortran = { git="https://github.com/jacobwilliams/bspline-fortran.git",
155155
A basic CMake configuration file is also included. For example, to build a static library:
156156

157157
```bash
158-
mkdir build
159-
cd build
160-
cmake ..
161-
make
158+
cmake -S. -Bbuild
159+
cmake --build build
162160
```
163161

164-
Or, to build a shared library:
162+
Or, to build a shared library, replace the first CMake command with:
165163

166164
```bash
167-
cmake -DBUILD_SHARED_LIBS=ON ..
165+
cmake -S. -Bbuild -DBUILD_SHARED_LIBS=ON ..
168166
```
169167

170168
For a debug build:
171169
```bash
172-
cmake -DCMAKE_BUILD_TYPE=DEBUG ..
170+
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=DEBUG ..
173171
```
174172

175173
## Dependencies

0 commit comments

Comments
 (0)