[cmake-developers] ENV{SOURCE_DATE_EPOCH}
Brad King
brad.king at kitware.com
Tue Nov 20 15:59:57 EST 2018
On 11/20/18 3:26 PM, Oleh Kravchenko wrote:
> CFLAGS, CXXFLAGS and LDFLAGS is a part of toolchain,
> but suddenly CMake handle it and pass to the build tools..
No, those are interpreted by the buildsystem and converted
into flags passed to the compiler. Running
env CFLAGS=-DFOO cc foo.c
does not use those flags to compile `foo.c`.
`SOURCE_DATE_EPOCH` is directly interpreted by the compiler.
-Brad
More information about the cmake-developers
mailing list