build: Fix version stripping issues

This commit is contained in:
WerWolv 2025-12-09 21:58:29 +01:00
parent a4ee590875
commit 5cbd53ae7a
2 changed files with 2 additions and 4 deletions

View File

@ -351,9 +351,8 @@ macro(createPackage)
DEPENDS ${VERSIONLESS_LIBWINPTHREAD} DEPENDS ${VERSIONLESS_LIBWINPTHREAD}
) )
# Install the generated file
install(FILES ${VERSIONLESS_LIBWINPTHREAD} install(FILES ${VERSIONLESS_LIBWINPTHREAD}
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}" DESTINATION ${CMAKE_INSTALL_BINDIR}
) )
endif() endif()

View File

@ -96,9 +96,8 @@ int main(int argc, char* argv[]) {
std::filesystem::path inputPath(argv[1]); std::filesystem::path inputPath(argv[1]);
std::filesystem::path outputPath(argv[2]); std::filesystem::path outputPath(argv[2]);
std::filesystem::copy(inputPath, outputPath);
try { try {
std::filesystem::copy(inputPath, outputPath, std::filesystem::copy_options::overwrite_existing);
nukeVersionResource(outputPath.c_str()); nukeVersionResource(outputPath.c_str());
} catch (const std::exception& e) { } catch (const std::exception& e) {
fprintf(stderr, "%s", e.what()); fprintf(stderr, "%s", e.what());