From 5cbd53ae7a1892c309735eb9859d108c0ee3738b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 9 Dec 2025 21:58:29 +0100 Subject: [PATCH] build: Fix version stripping issues --- cmake/build_helpers.cmake | 3 +-- main/version_stripper/source/main.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index c310d8f9a..575dcf32e 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -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() diff --git a/main/version_stripper/source/main.cpp b/main/version_stripper/source/main.cpp index 82957a8cf..58494c2e4 100644 --- a/main/version_stripper/source/main.cpp +++ b/main/version_stripper/source/main.cpp @@ -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());