Skip to content

Commit 5d4829d

Browse files
committed
Fix install via CPM example
1 parent 40c3367 commit 5d4829d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/+current/index.md

+8
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ CPMAddPackage(
2929
VERSION "${RSP_CMAKE_SCRIPTS_VERSION}"
3030
GITHUB_REPOSITORY "rsps/cmake-scripts"
3131
)
32+
33+
# IMPORTANT: Enable "rsp/*" modules in your project,...
34+
list(APPEND CMAKE_MODULE_PATH "${rsp-cmake-scripts_SOURCE_DIR}/cmake")
3235
```
3336

37+
!!! info "`CMAKE_MODULE_PATH`"
38+
At the time of this writing, CPM does not automatically support paths appended to `CMAKE_MODULE_PATH`.
39+
To make use of this package's cmake modules, via CPM, you **MUST** manually append
40+
this package's module path in your top-level `CMakeLists.txt`, as shown in the above install example.
41+
3442
### Via Fetch Content
3543

3644
Alternatively, you can also use cmake's [`FetchContent`](https://cmake.org/cmake/help/latest/module/FetchContent.html) module:

0 commit comments

Comments
 (0)