Skip to content

Commit 33d0cb5

Browse files
davvidjberlin
authored andcommitted
build: allow gtest to be collected
1 parent de2463e commit 33d0cb5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.config.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ uname_S := $(shell uname -s)
55
# Example Linux config
66
ifeq ($(uname_S),Linux)
77

8-
EXTRA_CMAKE_ARGS += -DGTEST_DIR=/usr
8+
ifdef RP_gtest
9+
EXTRA_CMAKE_ARGS += -DGTEST_DIR=$(RP_gtest)
10+
else
11+
EXTRA_CMAKE_ARGS += -DGTEST_DIR=/usr
12+
endif
913

1014
ifdef RP_animlib
1115
EXTRA_CMAKE_ARGS += -DANIMLIB_DIR=$(RP_animlib)

0 commit comments

Comments
 (0)