From d96e8c316aff8bfb9957a9358a4c3a46014e0391 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Wed, 26 Feb 2020 00:00:05 +0100 Subject: [PATCH] CMAKE: Workaround for python --- DRAMSys/traceAnalyzer/businessObjects/pythoncaller.h | 6 ++++++ DRAMSys/traceAnalyzer/evaluationtool.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/DRAMSys/traceAnalyzer/businessObjects/pythoncaller.h b/DRAMSys/traceAnalyzer/businessObjects/pythoncaller.h index 17ff8819..9eceec38 100644 --- a/DRAMSys/traceAnalyzer/businessObjects/pythoncaller.h +++ b/DRAMSys/traceAnalyzer/businessObjects/pythoncaller.h @@ -38,6 +38,12 @@ #ifndef PYTHONCALLER_H #define PYTHONCALLER_H + +// Workaround for CMAKE and Python +#ifdef slots +#undef slots +#endif + #include #include #include diff --git a/DRAMSys/traceAnalyzer/evaluationtool.h b/DRAMSys/traceAnalyzer/evaluationtool.h index 32977f5b..81364e07 100644 --- a/DRAMSys/traceAnalyzer/evaluationtool.h +++ b/DRAMSys/traceAnalyzer/evaluationtool.h @@ -41,7 +41,13 @@ #define EVALUATIONTOOL_H #include "selectmetrics.h" + +// Workaround for CMAKE and Python +#ifdef slots +#undef slots +#endif #include + #include #include #include