From 6b1e4f24ab89531aab22c7be8a5078804acace92 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 16 May 2017 11:51:20 +0100 Subject: [PATCH] cmake: add mkdir to the out-of-source build ex. --- pages/common/cmake.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/cmake.md b/pages/common/cmake.md index f07ce03ac..bf93549e9 100644 --- a/pages/common/cmake.md +++ b/pages/common/cmake.md @@ -7,9 +7,9 @@ `cmake && make` -- Generate a Makefile and use it to compile a project in a separate folder (out-of-source build): +- Generate a Makefile and use it to compile a project in a separate "build" folder (out-of-source build): -`cd {{build_folder}} && cmake ../ && make` +`mkdir -p {{build}} && cd {{build}} && cmake ../ && make` - Run cmake in interactive mode (it will ask for each variable, instead of using defaults):