Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,800
    • Issues 3,800
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #23052

Closed
Open
Created Dec 29, 2021 by Markus87@Markus87

cmake -E copy_if_different does nothing if the files are different but bigger than 2GB on Windows

The following command does nothing for different files that are bigger than 2GB on Windows 10(21H1 Build 19043.1415) with cmake v3.22.1.

cmake.exe -E copy_if_different AnotherApp/libAnotherApp_arm64-v8a.so AnotherApp/android-build/libs/arm64-v8a/libAnotherApp_arm64-v8a.so

grafik

md5sum new/libAnotherApp_arm64-v8a.so old/libAnotherApp_arm64-v8a.so
fdf828a69896114190ee5737c25921db  new/libAnotherApp_arm64-v8a.so
0ae67d3078d7bd9b78db03b8c3deada7  old/libAnotherApp_arm64-v8a.so

cmp old/libAnotherApp_arm64-v8a.so new/libAnotherApp_arm64-v8a.so
old/libAnotherApp_arm64-v8a.so new/libAnotherApp_arm64-v8a.so sind verschieden: Byte 737, Zeile 1

I tested it with the same files on linux with cmake v3.20.5, there it works.

Edited Dec 29, 2021 by Markus87
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking