Simplify CMake invocation

This commit is contained in:
Saúl Ibarra Corretgé 2023-11-28 09:30:45 +01:00
parent 00d104e519
commit 331356625e

View file

@ -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