From 1b3362341bc1e1383a88ef5acd51421dd87ab7b3 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 17 Mar 2022 23:06:54 -0700 Subject: [PATCH] Tell cmake which compiler to use, based on what we use for Arduino (#1132) This will let us build gtest on macos with gcc rather than clang --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0406c4d0..c85f5a71 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ run-tests: $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt bu @: # blah build-gtest-gmock: - (cd testing/googletest && cmake .) + (cd testing/googletest && cmake -H. -Bbuild -DCMAKE_C_COMPILER=$(call _arduino_prop,compiler.path)/$(call _arduino_prop,compiler.c.cmd) -DCMAKE_CXX_COMPILER=$(call _arduino_prop,compiler.path)/$(call _arduino_prop,compiler.cpp.cmd) .) $(MAKE) -C testing/googletest adjust-git-timestamps: