From ead929d3da7b5e5f84c60982540593bba5632a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Wed, 22 Mar 2017 19:03:05 +0100 Subject: [PATCH] Small fix. Gem5 support is built based on the presence of the GEM5 environment variable. --- DRAMSys/DRAMSys.pro | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/DRAMSys/DRAMSys.pro b/DRAMSys/DRAMSys.pro index 0530961c..0852d9e4 100644 --- a/DRAMSys/DRAMSys.pro +++ b/DRAMSys/DRAMSys.pro @@ -1,8 +1,7 @@ TEMPLATE = subdirs thermalsim = $$(THERMALSIM) -isEmpty(thermalsim) -{ +isEmpty(thermalsim) { thermalsim = false } @@ -19,14 +18,13 @@ SUBDIRS += analyzer/traceAnalyzer.pro # Check if gem5 is installed: gem5 = $$(GEM5) -isEmpty(gem5) -{ - DEFINES += DRAMSYS_GEM5 -} - -contains(DEFINES,DRAMSYS_GEM5) -{ +isEmpty(gem5) { + message(GEM5 environment variable not found) + message(Gem5 Simulation Disabled) +} else { message(Gem5 Simulation Feature Enabled) + message(Gem5 home is $${gem5}) + DEFINES += DRAMSYS_GEM5 SUBDIRS += gem5/gem5.pro }