You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,13 @@ In the case that `find_package` requires additional arguments, the parameter `FI
214
214
215
215
Note that this does not apply to dependencies that have been defined with a truthy `FORCE` parameter. These will be added as defined.
216
216
217
+
### CPM_DONT_UPDATE_MODULE_PATH
218
+
219
+
By default, CPM will override any `find_package` commands to use the CPM downloaded version.
220
+
This is equivalent to the `OVERRIDE_FIND_PACKAGE` FetchContent option, which has no effect in CPM.
221
+
To disable this behaviour set the `CPM_DONT_UPDATE_MODULE_PATH` option.
222
+
This will not work for `find_package(CONFIG)` in CMake versions before 3.24.
223
+
217
224
### CPM_USE_NAMED_CACHE_DIRECTORIES
218
225
219
226
If set, CPM use additional directory level in cache to improve readability of packages names in IDEs like CLion. It changes cache structure, so all dependencies are downloaded again. There is no problem to mix both structures in one cache directory but then there may be 2 copies of some dependencies.
0 commit comments