Skip to content

Commit

Permalink
Correct nvbench + conda test to explicitly pull spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Dec 16, 2024
1 parent ca12bcd commit 481cc91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testing/cpm/cpm_nvbench-conda-fmt.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#=============================================================================
# Copyright (c) 2023, NVIDIA CORPORATION.
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
#=============================================================================
include(${rapids-cmake-dir}/cpm/init.cmake)
include(${rapids-cmake-dir}/cpm/rmm.cmake)
include(${rapids-cmake-dir}/cpm/spdlog.cmake)
include(${rapids-cmake-dir}/cpm/nvbench.cmake)

enable_language(CUDA)
Expand All @@ -27,6 +28,7 @@ rapids_cuda_set_architectures(RAPIDS)
set(BUILD_SHARED_LIBS ON)
rapids_cpm_init()
rapids_cpm_rmm()
rapids_cpm_spdlog()
rapids_cpm_nvbench()

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/use_fmt.cpp" [=[
Expand All @@ -50,5 +52,5 @@ int main() { return 0; }


add_library(uses_fmt SHARED "${CMAKE_CURRENT_BINARY_DIR}/use_fmt.cpp")
target_link_libraries(uses_fmt PRIVATE rmm::rmm nvbench::nvbench)
target_link_libraries(uses_fmt PRIVATE rmm::rmm nvbench::nvbench spdlog::spdlog_header_only)
target_compile_features(uses_fmt PRIVATE cxx_std_17)

0 comments on commit 481cc91

Please sign in to comment.