diff --git a/projects/rocm-smi-lib/CMakeLists.txt b/projects/rocm-smi-lib/CMakeLists.txt index e389134902..0af690ab61 100755 --- a/projects/rocm-smi-lib/CMakeLists.txt +++ b/projects/rocm-smi-lib/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/projects/rocm-smi-lib/oam/CMakeLists.txt b/projects/rocm-smi-lib/oam/CMakeLists.txt index 181ee1eb96..ad6b54b346 100644 --- a/projects/rocm-smi-lib/oam/CMakeLists.txt +++ b/projects/rocm-smi-lib/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/projects/rocm-smi-lib/rocm_smi/CMakeLists.txt b/projects/rocm-smi-lib/rocm_smi/CMakeLists.txt index 5b837a2630..23485aedfa 100755 --- a/projects/rocm-smi-lib/rocm_smi/CMakeLists.txt +++ b/projects/rocm-smi-lib/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 + "$" + "$" "$" "$" )