mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2026-02-06 14:55:57 +08:00
@@ -139,9 +139,9 @@ These options can also be set as environmental variables.
|
|||||||
|
|
||||||
## Local package override
|
## Local package override
|
||||||
|
|
||||||
Library developers are often in the situation where they work on a locally checked out dependency at the same time as on a consumer.
|
Library developers are often in the situation where they work on a locally checked out dependency at the same time as on a consumer project.
|
||||||
It is possible to override the consumer's dependency version with the local one by supplying the CMake option `CPM_<dependency name>_SOURCE`.
|
It is possible to override the consumer's dependency with the version by supplying the CMake option `CPM_<dependency name>_SOURCE` set to the absolute path of the local library.
|
||||||
For example, to use the local version of `Dep` at the absolute path `/path/to/dep`, the consumer can be build with `cmake -H. -Bbuild -DCPM_Dep_SOURCE=/path/to/dep`.
|
For example, to use the local version of the dependency `Dep` at the path `/path/to/dep`, the consumer can be built with `cmake -H. -Bbuild -DCPM_Dep_SOURCE=/path/to/dep`.
|
||||||
|
|
||||||
## Snippets
|
## Snippets
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user