File: 0037-deduplicate-cmake-messages.patch

package info (click to toggle)
rocm-hipamd 5.7.1-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,804 kB
  • sloc: cpp: 243,188; ansic: 35,728; perl: 1,227; sh: 902; python: 588; asm: 166; makefile: 59
file content (29 lines) | stat: -rw-r--r-- 953 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Fri, 22 Mar 2024 22:48:29 -0600
Subject: deduplicate hip cmake config messages

It's questionable whether this even needs to be printed once,
let alone multiple times.

Forwarded: no
---
 hipamd/hip-config-amd.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/hipamd/hip-config-amd.cmake b/hipamd/hip-config-amd.cmake
index 458b186..8605c3e 100755
--- a/hipamd/hip-config-amd.cmake
+++ b/hipamd/hip-config-amd.cmake
@@ -94,8 +94,10 @@ set_target_properties(hip::amdhip64 PROPERTIES
   INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
 )
 
-get_target_property(amdhip64_type hip::amdhip64 TYPE)
-message(STATUS "hip::amdhip64 is ${amdhip64_type}")
+if(NOT DEFINED amdhip64_type)
+  get_target_property(amdhip64_type hip::amdhip64 TYPE)
+  message(STATUS "hip::amdhip64 is ${amdhip64_type}")
+endif()
 
 if(NOT WIN32)
   set_target_properties(hip::device PROPERTIES