From 4bc153e28eed6d3b0d3e5106998070d064968452 Mon Sep 17 00:00:00 2001 From: "Michael C. Heiber" Date: Sat, 25 Jul 2020 21:28:44 -0500 Subject: [PATCH] Update makefile compiler detection - Fixed minor mistake with makefile compiler detection --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 1918782..4c835dc 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ COMPILER := $(shell mpicxx -show | awk '{print $$1}') $(info COMPILER is $(COMPILER)) -ifeq ($(shell echo $(COMPILER) | head -c 3), g++) +ifeq ($(shell echo $(COMPILER) | head -c 3), g++) FLAGS += -Wall -Wextra -O3 -std=c++11 -I. -Isrc -IKMC_Lattice/src endif ifeq ($(COMPILER), clang++) @@ -63,7 +63,7 @@ GTEST_DIR = googletest/googletest GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \ $(GTEST_DIR)/include/gtest/internal/*.h GTEST_SRCS_ = $(GTEST_DIR)/src/*.cc $(GTEST_DIR)/src/*.h $(GTEST_HEADERS) -ifeq ($(COMPILER), g++) +ifeq ($(shell echo $(COMPILER) | head -c 3), g++) GTEST_FLAGS = -isystem $(GTEST_DIR)/include -pthread endif ifeq ($(COMPILER), clang++)