Skip to content

Commit a395d7d

Browse files
committed
fix: guess single config for more generators
Signed-off-by: Henry Schreiner <[email protected]>
1 parent b4386cb commit a395d7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/scikit_build_core/cmake.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,8 @@ def configure(
133133
cmake_args: Sequence[str] = (),
134134
) -> None:
135135
if "CMAKE_GENERATOR" in self.env:
136-
self.single_config = self.env["CMAKE_GENERATOR"] in {
137-
"Ninja",
138-
"Unix Makefiles",
139-
}
136+
gen = self.env["CMAKE_GENERATOR"]
137+
self.single_config = gen == "Ninja" or "Makefiles" in gen
140138

141139
_cmake_args = self._compute_cmake_args(defines or {})
142140

0 commit comments

Comments
 (0)