forked from ROCm/rocm_smi_lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rocm_smi will provide cmake files exporting the INCLUDE/LIBRARY targets. Change-Id: I1943a3142bdc0abd8f03ff62e12e947aac835401
- Loading branch information
1 parent
2f84906
commit 088fe48
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(PACKAGE_VERSION "@ROCM_SMI_VERSION@") | ||
|
||
# Check whether the requested PACKAGE_FIND_VERSION is compatible | ||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") | ||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
else() | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
endif() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# - Config file for the rocm_smi package | ||
# It defines the following variables | ||
# ROCM_SMI_INCLUDE_DIRS - include directories for rocm_smi | ||
# ROCM_SMI_LIBRARIES - libraries to link against | ||
|
||
# Compute paths | ||
get_filename_component(ROCM_SMI_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
set(ROCM_SMI_INCLUDE_DIR "@CONF_INCLUDE_DIRS@") | ||
set(ROCM_SMI_LIB_DIR "@CONF_LIB_DIR@") | ||
|
||
# Our library dependencies (contains definitions for IMPORTED targets) | ||
if(NOT TARGET rocm_smi AND NOT rocm_smi_BINARY_DIR) | ||
include("${ROCM_SMI_CMAKE_DIR}/rocm_smiTargets.cmake") | ||
endif() | ||
|
||
# These are IMPORTED targets created by RocmSmiTargets.cmake | ||
set(ROCM_SMI_LIBRARIES "@CONF_LIBS@") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters