From 7dc9a5a849ae5f3ef31f56b3a75409e877277df9 Mon Sep 17 00:00:00 2001 From: Masaki Kozuki Date: Wed, 2 Nov 2022 00:49:02 -0700 Subject: [PATCH] BUILD: Use `CMAKE_CURRENT_LIST_DIR` as prefix (#637) so that we can install build artifacts into a different path from one passed as `build` when building UCC. Signed-off-by: Masaki Kozuki Signed-off-by: Masaki Kozuki --- cmake/ucc-targets.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/ucc-targets.cmake.in b/cmake/ucc-targets.cmake.in index fecdad42d4..2ac0cee29c 100644 --- a/cmake/ucc-targets.cmake.in +++ b/cmake/ucc-targets.cmake.in @@ -1,8 +1,8 @@ # -# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # -set(prefix "@prefix@") +set(prefix ${CMAKE_CURRENT_LIST_DIR}/../../..) set(exec_prefix "@exec_prefix@") add_library(ucc::ucc SHARED IMPORTED)