Skip to content

Commit

Permalink
README: Make cmake instructions more portable and simple
Browse files Browse the repository at this point in the history
Don't assume that make is used. Don't change directories.
  • Loading branch information
nwellnhof authored and jgm committed Dec 17, 2024
1 parent 379741f commit 3460cd8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,15 @@ For a more portable method, you can use [cmake] manually. [cmake] knows
how to create build environments for many build systems. For example,
on FreeBSD:

mkdir build
cd build
cmake .. # optionally: -DCMAKE_INSTALL_PREFIX=path
make # executable will be created as build/src/cmark
make test
make install
cmake -S . -B build # optionally: -DCMAKE_INSTALL_PREFIX=path
cmake --build build # executable will be created as build/src/cmark
ctest --test-dir build
cmake --install build

Or, to create Xcode project files on OSX:

mkdir build
cd build
cmake -G Xcode ..
open cmark.xcodeproj
cmake -S . -B build -G Xcode
open build/cmark.xcodeproj

The GNU Makefile also provides a few other targets for developers.
To run a benchmark:
Expand Down

0 comments on commit 3460cd8

Please sign in to comment.