[cmake-developers] ENV{SOURCE_DATE_EPOCH}

Oleh Kravchenko oleg at kaa.org.ua
Tue Nov 20 16:13:56 EST 2018


So what you will advice?

I don't like idea to cover "cmake && make" with special bash script,
just to export SOURCE_DATE_EPOCH.

20.11.18 22:59, Brad King wrote:
> 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
> 

-- 
Best regards,
Oleh Kravchenko



More information about the cmake-developers mailing list