From 331356625e4c4b9146ada820ce8cf0bc170ecbf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 28 Nov 2023 09:30:45 +0100 Subject: [PATCH] Simplify CMake invocation --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 76660ac..92192e5 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,7 @@ build: $(BUILD_DIR)/CMakeCache.txt cmake --build $(BUILD_DIR) -j $(JOBS) $(BUILD_DIR)/CMakeCache.txt: - @mkdir -p $(BUILD_DIR) - cd $(BUILD_DIR); cmake ../ -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) + cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) install: build cmake --build $(BUILD_DIR) --target install