We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f34d29d commit 0f47ba6Copy full SHA for 0f47ba6
1 file changed
Makefile
@@ -9,14 +9,15 @@ BUILD_TYPE ?= Release
9
10
.PHONY: all clean test submodules check-cmake
11
12
+all: check-cmake submodules $(BUILD_DIR)/Makefile
13
+ @cd $(BUILD_DIR) && $(MAKE)
14
+
15
check-cmake:
16
@if [ -f CMakeCache.txt ] && ! grep -q "CMAKE_BUILD_TYPE:STRING=Release" CMakeCache.txt; then \
17
echo "ERROR: Root CMakeCache.txt exists with wrong BUILD_TYPE. This happens when running 'cmake -S . -B .' directly."; \
18
echo "Please run 'git checkout Makefile' and then use 'make' instead."; \
19
exit 1; \
20
fi
-
-all: check-cmake submodules $(BUILD_DIR)/Makefile
21
@cd $(BUILD_DIR) && $(MAKE)
22
23
submodules:
0 commit comments