Skip to content

[BUG] rapids-logger cannot find spdlog #46

@ttnghia

Description

@ttnghia

When a cmake project include cudf like this: https://github.com/rapidsai/cudf/blob/5868839f9fc88de50594e6067c7b15265523cdb1/java/src/main/native/CMakeLists.txt#L95

rapids_find_package(cudf REQUIRED)

Then an error shows up saying that rapids-logger needs spdlog but cannot find it:

[INFO]      [exec] CMake Error at /usr/local/cmake-3.30.4-linux-x86_64/share/cmake-3.30/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
[INFO]      [exec]   By not providing "Findspdlog.cmake" in CMAKE_MODULE_PATH this project has
[INFO]      [exec]   asked CMake to find a package configuration file provided by "spdlog", but
[INFO]      [exec]   CMake did not find one.
[INFO]      [exec] 
[INFO]      [exec]   Could not find a package configuration file provided by "spdlog" with any
[INFO]      [exec]   of the following names:
[INFO]      [exec] 
[INFO]      [exec]     spdlogConfig.cmake
[INFO]      [exec]     spdlog-config.cmake
[INFO]      [exec] 
[INFO]      [exec]   Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
[INFO]      [exec]   "spdlog_DIR" to a directory containing one of the above files.  If "spdlog"
[INFO]      [exec]   provides a separate development package or SDK, be sure it has been
[INFO]      [exec]   installed.
[INFO]      [exec] Call Stack (most recent call first):
[INFO]      [exec]   target/libcudf-install/lib64/cmake/rapids_logger/rapids_logger-dependencies.cmake:20 (find_dependency)
[INFO]      [exec]   target/libcudf-install/lib64/cmake/rapids_logger/rapids_logger-config.cmake:82 (include)
[INFO]      [exec]   /usr/local/cmake-3.30.4-linux-x86_64/share/cmake-3.30/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
[INFO]      [exec]   target/libcudf-install/lib64/cmake/cudf/cudf-dependencies.cmake:25 (find_dependency)
[INFO]      [exec]   target/libcudf-install/lib64/cmake/cudf/cudf-config.cmake:91 (include)
[INFO]      [exec]   target/libcudfjni/_deps/rapids-cmake-src/rapids-cmake/find/package.cmake:125 (find_package)
[INFO]      [exec]   CMakeLists.txt:95 (rapids_find_package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions