Skip to content

Commit 00f2844

Browse files
partoufclaude
andcommitted
Configure cmake with Debug build type to match ce_install
ce_install builds libraries with -DCMAKE_BUILD_TYPE=Debug, which can append a debug postfix (e.g. libyaml-cppd.a instead of libyaml-cpp.a). Match this in our cmake configure step so link.txt artifact detection produces the correct library names. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0c8b6b5 commit 00f2844

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

core/library_utils.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,17 @@ def get_cmake_targets_from_path(clone_path: Path, build_path: Path) -> list[str]
124124
List of library target names, or None on error
125125
"""
126126
try:
127-
# Configure CMake
127+
# Configure CMake with Debug build type to match ce_install
128128
result = run_command(
129-
["cmake", "-B", str(build_path), "-S", str(clone_path)], clean_env=False
129+
[
130+
"cmake",
131+
"-B",
132+
str(build_path),
133+
"-S",
134+
str(clone_path),
135+
"-DCMAKE_BUILD_TYPE=Debug",
136+
],
137+
clean_env=False,
130138
)
131139

132140
if result.returncode != 0:

0 commit comments

Comments
 (0)