SIGN IN SIGN UP

Disable cmake install skip based on mtime (#2097)

## What?
Disable CMake optimization to skip install step based on file
modification timestamp

## Why?
CMake optimization to skip install step based on mtime uses 1 second
resolution timestamps.

Complex CMake scripts sometimes have directives with the pattern:
- install file
- patch file
- install same file again

The 2nd install step may be skipped if the build machine is very fast
and is executed less than 1 second after the first install step. This
results into incorrect installation.

[Seen in
CI](https://nbuprod.blsm.nvidia.com/nbu-swx-nixl-main/blue/organizations/jenkins/nixl-ci-test-sanitizers/detail/nixl-ci-test-sanitizers/760/pipeline/242/)
in Azure SDK installation from source, that sometimes causes
inconsistent headers to be installed, with different values of RTTI
macro, resulting in memory corruption in the Azure storage plugin
init/destroy.

## How?
Set
[CMAKE_INSTALL_ALWAYS=1](https://github.com/Kitware/CMake/blob/f0952e573f5557b61847f8ee60641d51b36ef352/Source/cmFileInstaller.cxx#L32)
which turns off the mtime-based install skip.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved build reliability by ensuring installation steps consistently
copy generated files, even when timestamps have not changed.
* Reduced the risk of incomplete or stale artifacts in standard, ROCm,
Docker, and manylinux builds.

* **Chores**
* Applied consistent installation behavior across supported container
and package build environments.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Ovidiu Mara <ovidium@nvidia.com>
O
ovidiusm committed
90cce469afde9ef640877201e01e2ed96509187d
Parent: dd54dee
Committed by GitHub <noreply@github.com> on 8/20/2026, 7:53:30 AM