Skip to content

Commit

Permalink
Fix docs and signature for rapids_export_cpm
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Jan 7, 2025
1 parent f275786 commit 0f958da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rapids-cmake/export/cpm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ generated information will include a :cmake:command:`CPMFindPackage` call for <P
``INSTALL``
Will record <PackageName> is part of the build directory export set
``CPM_ARGS``
Arguments to be passed to the generated CPM call.
``GLOBAL_TARGETS``
Which targets from this package should be made global. This information
will be propagated to any associated export set.
.. note::
It is an anti-pattern to use this command with `INSTALL` as most CMake
based projects should be installed, and :cmake:command:`rapids_export_package(INSTALL` used
Expand All @@ -60,7 +67,7 @@ function(rapids_export_cpm type name export_set)
string(TOLOWER ${type} type)

set(options "")
set(one_value EXPORT_SET)
set(one_value)
set(multi_value GLOBAL_TARGETS CPM_ARGS)
cmake_parse_arguments(_RAPIDS "${options}" "${one_value}" "${multi_value}" ${ARGN})

Expand Down

0 comments on commit 0f958da

Please sign in to comment.