-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename CMake package to ROCmCMakeBuildTools (#128)
Having the name of this CMake package be ROCM is consistently confusing to users who expect find_package(ROCM [...]) to add ROCm packages to their build, instead of tools that we use to build ROCm (see #49). Renaming the CMake project to ROCmCMakeBuildTools makes the purpose of this package clearer. In order to have as smooth a transition as possible, starting this as a notice, will make into a deprecation/warning in ~6.2, error sometime later, remove in 7.0.
- Loading branch information
1 parent
433d5cb
commit df4df6d
Showing
42 changed files
with
150 additions
and
38 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# ###################################################################################################################### | ||
# Copyright (C) 2017 Advanced Micro Devices, Inc. | ||
# Copyright (C) 2023 Advanced Micro Devices, Inc. | ||
# ###################################################################################################################### | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) | ||
include(ROCMChecks) | ||
message(STATUS | ||
"Use of find_package(ROCM) will be deprecated soon, please switch to find_package(ROCmCMakeBuildTools)." | ||
) | ||
find_package(ROCmCMakeBuildTools HINTS "${CMAKE_CURRENT_LIST_DIR}") |
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,7 @@ | ||
# ###################################################################################################################### | ||
# Copyright (C) 2023 Advanced Micro Devices, Inc. | ||
# ###################################################################################################################### | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../../rocmcmakebuildtools/cmake) | ||
|
||
include(ROCmCMakeBuildToolsConfigVersion) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
share/rocmcmakebuildtools/cmake/ROCmCMakeBuildToolsConfig.cmake
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,6 @@ | ||
# ###################################################################################################################### | ||
# Copyright (C) 2017 Advanced Micro Devices, Inc. | ||
# ###################################################################################################################### | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) | ||
include(ROCMChecks) |
File renamed without changes.
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
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
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,51 @@ | ||
################################################################################ | ||
# Copyright (C) 2017 Advanced Micro Devices, Inc. | ||
################################################################################ | ||
|
||
|
||
cmake_minimum_required (VERSION 3.5) | ||
project(simple CXX) | ||
|
||
find_package(ROCM) | ||
|
||
include(ROCMInstallTargets) | ||
include(ROCMPackageConfigHelpers) | ||
include(ROCMSetupVersion) | ||
include(ROCMInstallSymlinks) | ||
include(ROCMCreatePackage) | ||
|
||
rocm_setup_version(VERSION 1.0.0) | ||
|
||
if(ROCM_PREFIX) | ||
rocm_create_package( | ||
NAME simple | ||
PREFIX ${ROCM_PREFIX} | ||
MAINTAINER "Amd amd@amd.com" | ||
PTH | ||
LDCONFIG) | ||
else() | ||
rocm_create_package( | ||
NAME simple | ||
MAINTAINER "Amd amd@amd.com" | ||
PTH | ||
LDCONFIG) | ||
endif() | ||
|
||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib) | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) | ||
|
||
add_library(simple simple.cpp) | ||
rocm_set_soversion(simple 1.1.2) | ||
|
||
add_executable(simple-main main.cpp) | ||
target_link_libraries(simple-main simple) | ||
|
||
if(ROCM_PREFIX) | ||
rocm_install_targets(TARGETS simple simple-main INCLUDE include PREFIX ${ROCM_PREFIX}) | ||
rocm_export_targets(TARGETS simple INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/importtarget.cmake PREFIX ${ROCM_PREFIX}) | ||
rocm_install_symlink_subdir(${ROCM_PREFIX}) | ||
else() | ||
rocm_install_targets(TARGETS simple simple-main INCLUDE include) | ||
rocm_export_targets(TARGETS simple INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/importtarget.cmake) | ||
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,3 @@ | ||
This is a placeholder license file for the purposes of testing, and is not the license for this repository or the files | ||
contained in this directory. The license for rocm-cmake (including all files in this directory) can be located at | ||
"https://github.com/RadeonOpenCompute/rocm-cmake/blob/master/LICENSE". |
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,3 @@ | ||
# ###################################################################################################################### | ||
# Copyright (C) 2017 Advanced Micro Devices, Inc. | ||
# ###################################################################################################################### |
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 @@ | ||
/******************************************************************************* | ||
* Copyright (C) 2017 Advanced Micro Devices, Inc. | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef GUARD_SIMPLE_H | ||
#define GUARD_SIMPLE_H | ||
|
||
void simple(); | ||
|
||
|
||
#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,6 @@ | ||
|
||
void simple(); | ||
|
||
int main() { | ||
simple(); | ||
} |
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,7 @@ | ||
/******************************************************************************* | ||
* Copyright (C) 2017 Advanced Micro Devices, Inc. | ||
******************************************************************************/ | ||
|
||
|
||
void simple() | ||
{} |
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,9 @@ | ||
# ###################################################################################################################### | ||
# Copyright (C) 2023 Advanced Micro Devices, Inc. | ||
# ###################################################################################################################### | ||
|
||
install_dir(${TEST_DIR}/libsimplecompat TARGETS package) | ||
test_check_package( | ||
NAME simple | ||
HEADER simple.h | ||
TARGET simple) |
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
Oops, something went wrong.