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
pull/1133/head
Jesse Vincent 3 years ago committed by GitHub
parent 84f0b3307f
commit 1b3362341b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,7 +58,7 @@ run-tests: $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt bu
@: # blah @: # blah
build-gtest-gmock: 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 $(MAKE) -C testing/googletest
adjust-git-timestamps: adjust-git-timestamps:

Loading…
Cancel
Save