Commit 07cc60e2 by Martin Salinas Committed by GitHub

Fixed installation commands

Installation commands in the readme cause an error when running last command `cmake --install .` because of the lack of sudo privileges.
The following commands don't require sudo to run successfully and install the library.
parent 24aa7a70
...@@ -27,12 +27,9 @@ On linux e.g. you would issue the following commands: ...@@ -27,12 +27,9 @@ On linux e.g. you would issue the following commands:
``` ```
git clone https://github.com/PDB-REDO/libcifpp.git git clone https://github.com/PDB-REDO/libcifpp.git
cd libcifpp cd libcifpp
mkdir build cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$HOME/path/to/libcifpp/ -DCMAKE_BUILD_TYPE=Release
cd build cmake --build build
cmake .. cmake --install build
cmake --build . --config Release
ctest -C Release
cmake --install .
``` ```
This checks out the source code from github, creates a new directory This checks out the source code from github, creates a new directory
where cmake stores its files. Run a configure, build the code and run where cmake stores its files. Run a configure, build the code and run
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment