← All commands
Topic hub Developer Tools
Windows Linux Developer Tools Build Tools

Windows cmake configure on Windows equivalent in Linux

Generates build files in a separate build directory.

Windows cmake configure on Windows
Linux equivalents
Debian/Ubuntu install with apt when missing
cmake -S . -B build
Fedora install with dnf when missing
cmake -S . -B build
Arch install with pacman when missing
cmake -S . -B build

Overview

What this command does

Generates build files in a separate build directory.

Migration tip: Check the distro-specific rows before copying; package names and service names can differ even when the tool name is similar.

Practical tasks

Common use cases

Configure CMake project

Generates build files in a separate build directory.

cmake -S . -B build

Configure CMake project

cmake --help

Show command help when supported

man cmake

Open the manual page when installed

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

cmake -S . -B build

Walkthrough

Examples with explanations

# Windows equivalent: cmake configure on Windows
cmake -S . -B build

Reference

Common options and variations

Command or optionUse
cmake -S . -B buildConfigure CMake project
cmake --helpShow command help when supported
man cmakeOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is shown for Debian/Ubuntu, Fedora and Arch. Some rows use a different package manager or helper tool where Linux distributions commonly diverge.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu install with apt when missing cmake -S . -B build Same command on this distribution.
Fedora install with dnf when missing cmake -S . -B build Same command on this distribution.
Arch install with pacman when missing cmake -S . -B build Same command on this distribution.

Keep learning

Related Developer Tools commands