From cf09c187f148e11f006e8b91c8a4ac1b2fb6cbf8 Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Wed, 28 Sep 2022 09:52:14 -0400 Subject: [PATCH] Fix the compile error The rocm_smi64Config.h is not generated which break the build. Change-Id: I9ea43b53a20bf00a2338f96a6f49d630c60962d1 [ROCm/amdsmi commit: 7fa3b36d7f43b364555e73998b01c4268890b2ca] --- projects/amdsmi/rocm_smi/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/projects/amdsmi/rocm_smi/CMakeLists.txt b/projects/amdsmi/rocm_smi/CMakeLists.txt index 4be367a53b..a338e0ba61 100755 --- a/projects/amdsmi/rocm_smi/CMakeLists.txt +++ b/projects/amdsmi/rocm_smi/CMakeLists.txt @@ -58,7 +58,17 @@ message("SOVERSION: ${SO_VERSION_STRING}") # Create a configure file to get version info from within library configure_file( "${PROJECT_SOURCE_DIR}/src/${ROCM_SMI_TARGET}Config.in" - "${PROJECT_SOURCE_DIR}/include/amd_smi/${ROCM_SMI_TARGET}Config.h") + "${PROJECT_SOURCE_DIR}/include/amd_smi/${ROCM_SMI_TARGET}Config.h" + ) + +set(rocm_smi_VERSION_MAJOR "${VERSION_MAJOR}") +set(rocm_smi_VERSION_MINOR "${VERSION_MINOR}") +set(rocm_smi_VERSION_PATCH "0") +set(rocm_smi_VERSION_BUILD "0") +configure_file( + "${PROJECT_SOURCE_DIR}/rocm_smi/src/rocm_smi64Config.in" + "${PROJECT_SOURCE_DIR}/rocm_smi/include/rocm_smi/rocm_smi64Config.h" + ) set(RSMI_SRC_DIR "src") set(RSMI_INC_DIR "include")