Re: [CMake] [CMAKE] Disable testing when building using bootstrap

2019-02-12 Thread Jon Haitz Legarreta Gorroño
Hi Robert, thanks. That answers the question ! Cheers, JON HAITZ On Tue, Feb 12, 2019 at 1:24 PM Robert Maynard wrote: > > You can pass CMake arguments to the bootstrap by doing: > > ./bootstrap -- -DBUILD_TESTING=OFF > > On Mon, Feb 11, 2019 at 12:03 PM Jon Haitz Legarret

[CMake] [CMAKE] Disable testing when building using bootstrap

2019-02-11 Thread Jon Haitz Legarreta Gorroño
Hi, I'm trying to build CMake from sources using the `bootstrap` script. Please, correct me if I'm wrong, but it looks like CMake is being built with `BUILD_TESTING=ON` by default. I'd like to disable testing (and any other non-essential option), but AFAIK bootstrap does not expose the `-DBUILD_

Re: [CMake] [CMAKE] Getting compilation date through CMake

2013-12-09 Thread Jon Haitz Legarreta
o warn you, that windows "date" command output is > locale-specific, so you may get into trouble if you want to use it as > anything else than a string literal. > > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf > Of Jon Haitz Legarreta > Sent: M

Re: [CMake] [CMAKE] Getting compilation date through CMake

2013-12-09 Thread Jon Haitz Legarreta
because a FindSubversion.cmake exists in CMake, and there is an svnversion.exe somewhere in my SVN install. HTH, JON HAITZ On 9 December 2013 08:53, Jon Haitz Legarreta wrote: > Dear Fraser and Matthew, > yes, both approaches work. Thank you. > > There seems to be a trailing endline in the re

Re: [CMake] [CMAKE] Getting compilation date through CMake

2013-12-08 Thread Jon Haitz Legarreta
Dear Fraser and Matthew, yes, both approaches work. Thank you. There seems to be a trailing endline in the response given by $ENV{COMSPEC} /c date /t, so the following regex helps deleting it: STRING(REGEX REPLACE "(\r?\n)+$" "" _date "${_date}") Thanks again, JON HAITZ On 5 December 2013 22:

[CMake] [CMAKE] Getting compilation date through CMake

2013-12-05 Thread Jon Haitz Legarreta
Hi there, I was trying to get the compilation time through a CMake-executed command in order to know the compilation time of a given project. In my custom.cmake file I was using execute_process(COMMAND date -t OUTPUT_VARIABLE _output ) It turns out that the _output variable is empty when