Skip to content

Commit

Permalink
Update makefile compiler detection
Browse files Browse the repository at this point in the history
- Fixed minor mistake with makefile compiler detection
  • Loading branch information
MikeHeiber committed Jul 26, 2020
1 parent ef169ad commit 4bc153e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit 4bc153e

Please sign in to comment.