Skip to content

Commit

Permalink
Merge pull request #537 from mmuetzel/cmake
Browse files Browse the repository at this point in the history
README: Document CMake flag `SUITESPARSE_PKGFILEDIR`
  • Loading branch information
DrTimothyAldenDavis authored Nov 27, 2023
2 parents b4197ac + 0f6e0ec commit 9982abf
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,23 @@ is set).
sudo cmake --install .
```

* `SUITESPARSE_PKGFILEDIR`:

Directory where CMake Config and pkg-config files will be installed. By
default, CMake Config files will be installed in the subfolder `cmake` of the
directory where the (static) libraries will be installed (e.g., `lib`). The
`.pc` files for pkg-config will be installed in the subfolder `pkgconfig` of
the directory where the (static) libraries will be installed.

This option allows to install them at a location different from the (static)
libraries. This allows to install multiple configurations of the SuiteSparse
libraries at the same time (e.g., by also setting a different
`CMAKE_RELEASE_POSTFIX` and `CMAKE_INSTALL_LIBDIR` for each of them). To pick
up the respective configuration in downstream projects, set, e.g.,
`CMAKE_PREFIX_PATH` (for CMake) or `PKG_CONFIG_PATH` (for build systems using
pkg-config) to the path containing the respective CMake Config files or
pkg-config files.

* `BUILD_SHARED_LIBS`:

If `ON`, shared libraries are built.
Expand Down
17 changes: 17 additions & 0 deletions SuiteSparse_config/Config/README.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,23 @@ is set).
sudo cmake --install .
```

* `SUITESPARSE_PKGFILEDIR`:

Directory where CMake Config and pkg-config files will be installed. By
default, CMake Config files will be installed in the subfolder `cmake` of the
directory where the (static) libraries will be installed (e.g., `lib`). The
`.pc` files for pkg-config will be installed in the subfolder `pkgconfig` of
the directory where the (static) libraries will be installed.

This option allows to install them at a location different from the (static)
libraries. This allows to install multiple configurations of the SuiteSparse
libraries at the same time (e.g., by also setting a different
`CMAKE_RELEASE_POSTFIX` and `CMAKE_INSTALL_LIBDIR` for each of them). To pick
up the respective configuration in downstream projects, set, e.g.,
`CMAKE_PREFIX_PATH` (for CMake) or `PKG_CONFIG_PATH` (for build systems using
pkg-config) to the path containing the respective CMake Config files or
pkg-config files.

* `BUILD_SHARED_LIBS`:

If `ON`, shared libraries are built.
Expand Down

0 comments on commit 9982abf

Please sign in to comment.