From edd1f2d73ce2533556e11888e3c795460539afd8 Mon Sep 17 00:00:00 2001
From: Alexander van Amesfoort <amesfoort@astron.nl>
Date: Thu, 30 Jul 2015 19:15:01 +0000
Subject: [PATCH] Task #8161: update dragnet variants file: force FFTW3 (and
 CFITSIO and GSL) to be used from /usr and not the custom installs from others
 in /usr/local (NFS).

---
 CMake/variants/variants.dragnet | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/CMake/variants/variants.dragnet b/CMake/variants/variants.dragnet
index 67b60befff1..f7bcc2395d6 100644
--- a/CMake/variants/variants.dragnet
+++ b/CMake/variants/variants.dragnet
@@ -12,6 +12,12 @@ set(CUDA_TOOLKIT_ROOT_DIR /opt/cuda-7.0)
 set(CASACORE_ROOT_DIR     /opt/casacore-2.0.1)
 set(DAL_ROOT_DIR          /opt/lofardal-2.5.0)
 
+# Avoid using unnecessary custom installed packages in /usr/local (NFS).
+# This may clash with libs other deps (e.g. casacore) linked to, and deps on NFS (possible latency spike for COBALT).
+set(FFTW3_ROOT_DIR        /usr)
+set(CFITSIO_ROOT_DIR      /usr)
+set(GSL_ROOT_DIR          /usr)
+
 # RHEL/CentOS 7 has openmpi in /usr/lib64/openmpi and mpich in /usr/lib64/mpich
 set(MPI_ROOT_DIR      /usr/lib64/openmpi)
 
-- 
GitLab