From 9c9a7b9de12786bd715c957cec0d07668ac99dbe Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Tue, 11 Jun 2024 09:13:57 -0400 Subject: [PATCH] Fix linting errors found in CMake files (#124) Signed-off-by: David Galiffi --- Libraries/rocSPARSE/level_2/csritsv/CMakeLists.txt | 12 ++++++++++-- Libraries/rocSPARSE/level_2/spitsv/CMakeLists.txt | 12 ++++++++++-- .../rocSPARSE/preconditioner/gpsv/CMakeLists.txt | 12 ++++++++++-- .../rocSPARSE/preconditioner/gtsv/CMakeLists.txt | 12 ++++++++++-- 4 files changed, 40 insertions(+), 8 deletions(-) diff --git a/Libraries/rocSPARSE/level_2/csritsv/CMakeLists.txt b/Libraries/rocSPARSE/level_2/csritsv/CMakeLists.txt index adc3eddc3..c07a80c3b 100644 --- a/Libraries/rocSPARSE/level_2/csritsv/CMakeLists.txt +++ b/Libraries/rocSPARSE/level_2/csritsv/CMakeLists.txt @@ -37,9 +37,17 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON) if(WIN32) - set(ROCM_ROOT "$ENV{HIP_PATH}" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "$ENV{HIP_PATH}" + CACHE PATH + "Root directory of the ROCm installation" + ) else() - set(ROCM_ROOT "/opt/rocm" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "/opt/rocm" + CACHE PATH + "Root directory of the ROCm installation" + ) endif() list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}") diff --git a/Libraries/rocSPARSE/level_2/spitsv/CMakeLists.txt b/Libraries/rocSPARSE/level_2/spitsv/CMakeLists.txt index 777cae125..8019d914f 100644 --- a/Libraries/rocSPARSE/level_2/spitsv/CMakeLists.txt +++ b/Libraries/rocSPARSE/level_2/spitsv/CMakeLists.txt @@ -37,9 +37,17 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON) if(WIN32) - set(ROCM_ROOT "$ENV{HIP_PATH}" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "$ENV{HIP_PATH}" + CACHE PATH + "Root directory of the ROCm installation" + ) else() - set(ROCM_ROOT "/opt/rocm" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "/opt/rocm" + CACHE PATH + "Root directory of the ROCm installation" + ) endif() list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}") diff --git a/Libraries/rocSPARSE/preconditioner/gpsv/CMakeLists.txt b/Libraries/rocSPARSE/preconditioner/gpsv/CMakeLists.txt index e697c95e2..fed642768 100644 --- a/Libraries/rocSPARSE/preconditioner/gpsv/CMakeLists.txt +++ b/Libraries/rocSPARSE/preconditioner/gpsv/CMakeLists.txt @@ -37,9 +37,17 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON) if(WIN32) - set(ROCM_ROOT "$ENV{HIP_PATH}" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "$ENV{HIP_PATH}" + CACHE PATH + "Root directory of the ROCm installation" + ) else() - set(ROCM_ROOT "/opt/rocm" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "/opt/rocm" + CACHE PATH + "Root directory of the ROCm installation" + ) endif() list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}") diff --git a/Libraries/rocSPARSE/preconditioner/gtsv/CMakeLists.txt b/Libraries/rocSPARSE/preconditioner/gtsv/CMakeLists.txt index 9cf908e68..5440239c3 100644 --- a/Libraries/rocSPARSE/preconditioner/gtsv/CMakeLists.txt +++ b/Libraries/rocSPARSE/preconditioner/gtsv/CMakeLists.txt @@ -37,9 +37,17 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON) if(WIN32) - set(ROCM_ROOT "$ENV{HIP_PATH}" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "$ENV{HIP_PATH}" + CACHE PATH + "Root directory of the ROCm installation" + ) else() - set(ROCM_ROOT "/opt/rocm" CACHE PATH "Root directory of the ROCm installation") + set(ROCM_ROOT + "/opt/rocm" + CACHE PATH + "Root directory of the ROCm installation" + ) endif() list(APPEND CMAKE_PREFIX_PATH "${ROCM_ROOT}")