Small fix.

Gem5 support is built based on the presence of the GEM5 environment variable.
This commit is contained in:
Éder F. Zulian
2017-03-22 19:03:05 +01:00
parent 616320ca9b
commit ead929d3da

View File

@@ -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
}