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 }