Skip to content

Commit 2f89fab

Browse files
committed
Add SingleConfig Compat
1 parent b57e1d7 commit 2f89fab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cppython/plugins/cmake/builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def generate_root_preset(
132132
name=cmake_data.configuration_name,
133133
inherits='cppython',
134134
binaryDir=build_directory.as_posix(),
135+
cacheVariables={
136+
'CMAKE_BUILD_TYPE': 'Release' # Ensure compatibility for single-config and multi-config generators
137+
},
135138
)
136139

137140
if preset_file.exists():

0 commit comments

Comments
 (0)