Skip to content

Commit 5ceddf5

Browse files
committed
Write version.h to the Configs folder instead.
1 parent 0ea5317 commit 5ceddf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VersionInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ void VersionInfo::write() const
304304
{
305305
const auto versionFile=L"ImageMagick\\" + _options.magickCoreName() + L"\\version.h";
306306

307-
write(L"Configure\\Configs\\package.version.h.in",L"Configure\\Configs\\package.version.h");
308307
write(L"ImageMagick\\" + _options.magickCoreName() + L"\\version.h.in",versionFile);
309308
write(L"ImageMagick\\config\\configure.xml.in",L"Artifacts\\bin\\configure.xml");
310309

311-
filesystem::copy(_options.rootDirectory + versionFile,_options.rootDirectory + L"Configure\\version.h",filesystem::copy_options::overwrite_existing);
310+
write(L"Configure\\Configs\\package.version.h.in",L"Configure\\Configs\\package.version.h");
311+
filesystem::copy(_options.rootDirectory + versionFile,_options.rootDirectory + L"Configure\\Configs\\version.h",filesystem::copy_options::overwrite_existing);
312312
}
313313

314314
void VersionInfo::write(wstring inputFile,wstring outputFile) const

0 commit comments

Comments
 (0)