From fbdbec1aa7cd37bbc11699b701bb988a4dc6490f Mon Sep 17 00:00:00 2001 From: Scot Halverson Date: Fri, 27 Oct 2023 13:53:08 -0600 Subject: [PATCH 1/2] Update CMakeLists.txt to have an install phase to make it work well with Spack --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4eebd4b..514d36b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,3 +49,5 @@ endif() add_executable(nvbandwidth ${src}) target_include_directories(nvbandwidth PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES} .) target_link_libraries(nvbandwidth Boost::program_options ${NVML_LIB_NAME} cuda) + +install(nvbandwidth) From 5dc8405d252ce83efe7f9e3d9f74241e11fa34ce Mon Sep 17 00:00:00 2001 From: Scot Halverson Date: Fri, 27 Oct 2023 13:56:33 -0600 Subject: [PATCH 2/2] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 514d36b..6ea356c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,4 +50,4 @@ add_executable(nvbandwidth ${src}) target_include_directories(nvbandwidth PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES} .) target_link_libraries(nvbandwidth Boost::program_options ${NVML_LIB_NAME} cuda) -install(nvbandwidth) +install(TARGETS nvbandwidth)