aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 905a60a3b..64c468d31 100644
--- a/Makefile
+++ b/Makefile
@@ -236,7 +236,7 @@ testbuild:
# unit tests.
.PHONY: tests
tests:
- $(Q) (cd $(PX4_BASE)/unittests && $(MAKE) unittests)
+ $(Q) (mkdir -p $(PX4_BASE)/unittests/build && cd $(PX4_BASE)/unittests/build && cmake .. && $(MAKE) unittests)
#
# Cleanup targets. 'clean' should remove all built products and force