mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 17:18:18 +00:00
As of commit f78f592b78 (pchreuse: defer target existence enforcement to
generation time, 2025-06-16) via !10887, the compile PDB directory is
always set. Some codepaths used the total computation as a signal to
build the path themselves. But the filename was not specified, so the
resulting filename ended up changing. Always create the filename as
expected.
Fixes: #27401
16 lines
290 B
C
16 lines
290 B
C
#include <stdio.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
int ret = 0;
|
|
char const* fname = TARGET_DIRECTORY "/PdbCompileFileName.pdb";
|
|
FILE* f = fopen(fname, "r");
|
|
if (f) {
|
|
fclose(f);
|
|
} else {
|
|
printf("Failed to open PDB file '%s'\n", fname);
|
|
ret = 1;
|
|
}
|
|
return ret;
|
|
}
|