From 92db324944b8117d95e6a95385e4eab92361619c Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Mon, 12 May 2025 13:58:12 -0400 Subject: [PATCH] [PATCH] Miscellaneous CMake fixes. Change-Id: Ibca31745d2e9375523193310bc1ca5994c87aa32 --- CMakeLists.txt | 6 ++---- oam/CMakeLists.txt | 2 ++ rocm_smi/CMakeLists.txt | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e389134902..0af690ab61 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,15 +5,13 @@ message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&") message(" CMake ROCm SMI (Library) [root] ") message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&") cmake_minimum_required(VERSION 3.14) +project(rocm_smi_lib) set(ROCM_SMI_LIBS_TARGET "rocm_smi_libraries") set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared library (.so) or not.") -## Set default module path if not already set -if(NOT DEFINED CMAKE_MODULE_PATH) - set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/") -endif() +list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules") ## Include common cmake modules include(utils) diff --git a/oam/CMakeLists.txt b/oam/CMakeLists.txt index 181ee1eb96..ad6b54b346 100644 --- a/oam/CMakeLists.txt +++ b/oam/CMakeLists.txt @@ -94,6 +94,8 @@ endif () # use the target_include_directories() command to specify the include directories for the target target_include_directories(${OAM_TARGET} PUBLIC + "$" + "$" "$" "$") diff --git a/rocm_smi/CMakeLists.txt b/rocm_smi/CMakeLists.txt index 5b837a2630..23485aedfa 100755 --- a/rocm_smi/CMakeLists.txt +++ b/rocm_smi/CMakeLists.txt @@ -88,6 +88,8 @@ target_include_directories(${ROCM_SMI_TARGET} PRIVATE # use the target_include_directories() command to specify the include directories for the target target_include_directories(${ROCM_SMI_TARGET} PUBLIC + "$" + "$" "$" "$" )