rapids-cmake icon indicating copy to clipboard operation
rapids-cmake copied to clipboard

[FEA] rapids-cmake `GLOBAL_TARGETS ....` should just infer `CMAKE_FIND_PACKAGE_TARGETS_GLOBAL=ON`

Open robertmaynard opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Currently developers need to explicitly list the targets they want evalated to global state. Now that we require CMake 3.24 we should remove that burden of listing targets from users of rapids-cmake.

Describe the solution you'd like

Every rapids-cmake API that has a GLOBAL_TARGETS parameter should support zero values. When we are given GLOBAL_TARGETS we should enable CMAKE_FIND_PACKAGE_TARGETS_GLOBAL to make all targets global and not just the ones listed.

robertmaynard avatar Jun 05 '24 14:06 robertmaynard