From e01ac5de5c176ad0c644ea919f2e7294e1aa3e60 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Mon, 30 Jul 2007 22:07:07 +0000
Subject: [PATCH] BugID: 1076

Casacore does auto-templating, so we should include the 'Gensort.h' instead of
the 'Gensort.cc' when using casacore.
---
 CEP/BB/ParmDB/src/ParmDB.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/CEP/BB/ParmDB/src/ParmDB.cc b/CEP/BB/ParmDB/src/ParmDB.cc
index a09fa98f7b8..be773caccf6 100644
--- a/CEP/BB/ParmDB/src/ParmDB.cc
+++ b/CEP/BB/ParmDB/src/ParmDB.cc
@@ -27,7 +27,12 @@
 #include <ParmDB/ParmDBPostgres.h>
 #include <Common/LofarLogger.h>
 #include <casa/Utilities/Regex.h>
-#include <casa/Utilities/GenSort.cc>     // for automatic template
+
+#ifdef AIPS_NO_TEMPLATE_SRC
+# include <casa/Utilities/GenSort.cc>     // for automatic template
+#else
+# include <casa/Utilities/GenSort.h>
+#endif
 
 using namespace std;
 using namespace casa;
-- 
GitLab