From a915e304fb0be5ac6d36dcf017ec389d80860a7e Mon Sep 17 00:00:00 2001
From: Debolskiy Andrey <and.debol@gmail.com>
Date: Sat, 11 Nov 2023 23:07:24 +0300
Subject: [PATCH] fixed if statemnets

---
 cluster_configs/ifa-cluster.cmake      | 2 +-
 cluster_configs/inm-cluster-avx.cmake  | 2 +-
 cluster_configs/inm-cluster-avx2.cmake | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cluster_configs/ifa-cluster.cmake b/cluster_configs/ifa-cluster.cmake
index 07ac507..3b94fb0 100644
--- a/cluster_configs/ifa-cluster.cmake
+++ b/cluster_configs/ifa-cluster.cmake
@@ -40,7 +40,7 @@ endif()
 
 #specify stuff for run-script
 set(cluster_queue "epyc")
-if ( ${compiler_lc} STREQUAL "intel" OR ${compiler_lc} STREQUAL "intel_oneapi")
+if ( compiler_lc STREQUAL "intel" OR compiler_lc STREQUAL "intel_oneapi")
     set(run_exec "srun -u")
     set(prerun_env_export "module load mpi/impi && export I_MPI_PMI_LIBRARY=/usr/lib64/libpmi.so")
 endif()
diff --git a/cluster_configs/inm-cluster-avx.cmake b/cluster_configs/inm-cluster-avx.cmake
index af55c7d..1e2ad3f 100644
--- a/cluster_configs/inm-cluster-avx.cmake
+++ b/cluster_configs/inm-cluster-avx.cmake
@@ -4,7 +4,7 @@
 #NETCDF support
 if (USE_NETCDF)
     set(CUSTOM_NETCDF true)
-    if ( ${compiler_lc} STREQUAL "intel" OR ${compiler_lc} STREQUAL "intel_oneapi")
+    if ( compiler_lc STREQUAL "intel" OR compiler_lc STREQUAL "intel_oneapi")
         set(NETCDF_PATH "/opt/ohpc/pub/libs/intel/impi/netcdf/4.9.0/")
         set(NETCDF_INC  "${NETCDF_PATH}include")
         set(NETCDF_LIB  "${NETCDF_PATH}lib")
diff --git a/cluster_configs/inm-cluster-avx2.cmake b/cluster_configs/inm-cluster-avx2.cmake
index 3fc9072..52bc648 100644
--- a/cluster_configs/inm-cluster-avx2.cmake
+++ b/cluster_configs/inm-cluster-avx2.cmake
@@ -4,7 +4,7 @@
 #NETCDF support
 if (USE_NETCDF)
 set(CUSTOM_NETCDF true)
-if ( ${compiler_lc} STREQUAL "intel" OR ${compiler_lc} STREQUAL "intel_oneapi")
+if ( compiler_lc STREQUAL "intel" OR compiler_lc STREQUAL "intel_oneapi")
   set(NETCDF_PATH "/opt/ohpc/pub/libs/intel/impi/netcdf/4.9.0/")
   set(NETCDF_INC  "${NETCDF_PATH}include")
   set(NETCDF_LIB  "${NETCDF_PATH}lib")
-- 
GitLab