Skip to content

Commit

Permalink
230912.020450.HKT revise README regarding the location of the compile…
Browse files Browse the repository at this point in the history
…d files
  • Loading branch information
zaikunzhang committed Sep 11, 2023
1 parent d8f3207 commit 9e19a7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ cd prima
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=OFF
cmake --build build --target install
```
This should create the **`primaf`** library for Fortran use, located in the `build/fortran` directory.
This should create the **`primaf`** library for Fortran usage, located in the `install/lib` directory
to be used with the module files in `install/include/prima/mod`.


Examples on how to use the library from an external code are available in [`fortran/examples`](https://github.com/libprima/prima/tree/main/fortran/examples).
Below is an illustration with COBYLA.
Expand All @@ -226,7 +228,7 @@ cmake --build build --target install

A C binding to the Fortran library is available in the [`c` folder](https://github.com/libprima/prima/tree/main/c).
In the same way as the Fortran library, it can be [compiled using CMake](#cmake),
which should also create the **`primac`** library for C compilation, located in `build/c` to be used with the **`prima.h`** header in `c/include/prima`.
which should also create the **`primac`** library for C compilation, located in `install/lib` to be used with the **`prima.h`** header in `install/include/prima`.

Examples on how to use the library from an external code are available in [`c/examples`](https://github.com/libprima/prima/tree/main/c/examples).
Below is an illustration with COBYLA.
Expand Down

0 comments on commit 9e19a7d

Please sign in to comment.