-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add further build instructions for C API
- Loading branch information
1 parent
d26ab7e
commit c5bdd9d
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Further compilation instructions | ||
|
||
## Shared libraries on MacOS | ||
|
||
On MacOS the environment variable `LD_LIBRARY_PATH` is replaced by `DYLD_LIBRARY_PATH`. | ||
|
||
## Nix vs Clang | ||
|
||
Same of what is specified in the [README](./README.md), but to use the GCC compiler, | ||
which is not necessarily the default (e.g. on MacOS), add a suitable CMake flag | ||
|
||
```bash | ||
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=<your install prefix> -D CMAKE_CXX_COMPILER=g++ | ||
cmake --build build | ||
cmake --install build | ||
``` |