Skip to content

Commit

Permalink
When nvcomp is found locally print where it is on disk
Browse files Browse the repository at this point in the history
This way users always get some console output for where nvcomp
is located. We don't remove the `QUIET` request since that
would print out the following:

```
  CMake Warning at ..../rapids-cmake/find/package.cmake:125 (find_package):
  By not providing "Findnvcomp.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "nvcomp", but
  CMake did not find one.

  Could not find a package configuration file provided by "nvcomp" (requested
  version 2.6.1) with any of the following names:

    nvcompConfig.cmake
    nvcomp-config.cmake

  Add the installation prefix of "nvcomp" to CMAKE_PREFIX_PATH or set
  "nvcomp_DIR" to a directory containing one of the above files.  If "nvcomp"
  provides a separate development package or SDK, be sure it has been
  installed.
```
  • Loading branch information
robertmaynard committed Jun 30, 2023
1 parent 052d184 commit 19c0d38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rapids-cmake/cpm/nvcomp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ function(rapids_cpm_nvcomp)
include("${rapids-cmake-dir}/find/package.cmake")
rapids_find_package(nvcomp ${version} GLOBAL_TARGETS nvcomp::nvcomp ${_RAPIDS_EXPORT_ARGUMENTS}
FIND_ARGS QUIET)
if(nvcomp_FOUND)
# report where nvcomp was found
message(STATUS "Found nvcomp: ${nvcomp_DIR} (found version ${nvcomp_VERSION})")
endif()
endif()

# second see if we have a proprietary pre-built binary listed in versions.json and it if
Expand Down

0 comments on commit 19c0d38

Please sign in to comment.