diff options
author | Brad King <brad.king@kitware.com> | 2021-09-14 17:14:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-16 19:33:53 (GMT) |
commit | cb93f7262469d0f7e1b7da01ad3586d001234af2 (patch) | |
tree | ee450b9b1157f07ff1c3b250781749cb848fc9be /Modules/Compiler | |
parent | a71f0fc9c7762a06d0bfdd64d0d490919e12357a (diff) | |
download | CMake-cb93f7262469d0f7e1b7da01ad3586d001234af2.zip CMake-cb93f7262469d0f7e1b7da01ad3586d001234af2.tar.gz CMake-cb93f7262469d0f7e1b7da01ad3586d001234af2.tar.bz2 |
HIP: Simplify detection of HIP runtime CMake package
It only makes sense to use the CMake package from the same ROCm
installation that the compiler uses. Ask the HIP compiler to report the
location of the ROCm installation. Verify up front that it contains the
expected CMake package file.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/Clang-HIP.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-HIP.cmake b/Modules/Compiler/Clang-HIP.cmake index 1030a43..4dbe2e8 100644 --- a/Modules/Compiler/Clang-HIP.cmake +++ b/Modules/Compiler/Clang-HIP.cmake @@ -15,6 +15,6 @@ set(CMAKE_HIP_RUNTIME_LIBRARY_DEFAULT "SHARED") set(CMAKE_HIP_RUNTIME_LIBRARY_LINK_OPTIONS_STATIC "") set(CMAKE_HIP_RUNTIME_LIBRARY_LINK_OPTIONS_SHARED "") -# Populated by CMakeHIPRuntime.cmake +# Populated by CMakeHIPInformation.cmake set(CMAKE_HIP_RUNTIME_LIBRARIES_STATIC "") set(CMAKE_HIP_RUNTIME_LIBRARIES_SHARED "") |