build: Fix version stripping issues

(cherry picked from commit 5cbd53ae7a)
This commit is contained in:
WerWolv
2025-12-09 21:58:29 +01:00
parent 64cbc16f78
commit 95c9168e25
2 changed files with 2 additions and 4 deletions

View File

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

View File

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