<div dir="ltr">Hi there,<br>I was trying to get the compilation time through a CMake-executed command in order to know the compilation time of a given project.<br>In my custom.cmake file I was using<br><br>execute_process(COMMAND<br>
date -t <br> OUTPUT_VARIABLE _output <br>)<br><br>It turns out that the _output variable is empty when I compile my project. However, the command works well from the command line. I'm working on a Win 7 64-bit machine.<br>
<br>I wanted to avoid using an extra C/C++ code file to get the current time.<br><br>Am I missing something?<br><br>Thank you,<br>JON HAITZ<div><div dir="ltr"><table align="center" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td><br></td></tr><tr><td><table align="center" border="0" cellpadding="0"><tbody><tr><td><span style="font-size:10px;color:gray;font-family:Verdana,Arial,Helvetica,sans-serif"></span><br></td></tr></tbody></table>
</td></tr></tbody></table></div></div>
</div>