blob: feff936129a2e4890fbe875f82b89eefd66d59d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
There is no /usr/.info/version file in Gentoo
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,10 +120,7 @@ execute_process(
message(STATUS "hipcc version: ${hipcc_version_string}")
## Check for ROCm version
-execute_process(
- COMMAND bash "-c" "cat ${ROCM_PATH}/.info/version"
- OUTPUT_VARIABLE rocm_version_string
-)
+set(rocm_version_string "@rocm_version@")
string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" rocm_version_matches ${rocm_version_string})
if (rocm_version_matches)
set(ROCM_MAJOR_VERSION ${CMAKE_MATCH_1})
|