diff options
author | Gergely Meszaros <maetveis@gmail.com> | 2022-10-09 17:19:45 (GMT) |
---|---|---|
committer | Gergely Meszaros <maetveis@gmail.com> | 2022-10-09 17:19:45 (GMT) |
commit | 22051103b8ef2212a836e6287973e66cc5492195 (patch) | |
tree | 1daa5b503bf143fd31b7346d557d304499fadf1f /Modules/CMakeHIPInformation.cmake | |
parent | 8b15f532db1b424e2218fc26ffd936a32044afa1 (diff) | |
download | CMake-22051103b8ef2212a836e6287973e66cc5492195.zip CMake-22051103b8ef2212a836e6287973e66cc5492195.tar.gz CMake-22051103b8ef2212a836e6287973e66cc5492195.tar.bz2 |
HIP: Find hip-lang-config.cmake with REQUIRED
Use REQUIRED for the find_package that loads the hip config, because
it may fail, e.g. because dependent libraries are not found. Before
this if the find_package failed cmake silently continued.
Diffstat (limited to 'Modules/CMakeHIPInformation.cmake')
-rw-r--r-- | Modules/CMakeHIPInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeHIPInformation.cmake b/Modules/CMakeHIPInformation.cmake index 4c57677..33f8697 100644 --- a/Modules/CMakeHIPInformation.cmake +++ b/Modules/CMakeHIPInformation.cmake @@ -143,7 +143,7 @@ set(CMAKE_HIP_INFORMATION_LOADED 1) # Load the file and find the relevant HIP runtime. if(NOT DEFINED _CMAKE_HIP_DEVICE_RUNTIME_TARGET) set(hip-lang_DIR "${CMAKE_HIP_COMPILER_ROCM_ROOT}/lib/cmake/hip-lang") - find_package(hip-lang CONFIG QUIET NO_DEFAULT_PATH) + find_package(hip-lang CONFIG QUIET NO_DEFAULT_PATH REQUIRED) endif() if(DEFINED _CMAKE_HIP_DEVICE_RUNTIME_TARGET) list(APPEND CMAKE_HIP_RUNTIME_LIBRARIES_STATIC ${_CMAKE_HIP_DEVICE_RUNTIME_TARGET}) |