[CMake] Special variables in CTest
Dixon, Shane
Shane.Dixon at atmel.com
Fri Oct 23 15:07:20 EDT 2009
Actually, CTest.cmake had what I needed to figure out the issue. In my script I have to set CMAKE_MAKE_PROGRAM before each run for it to work properly:
SET( CMAKE_MAKE_PROGRAM "mingw32-make" )
With 2.8 I think another option would be to set CMAKE_MAKE_PROGRAM to "make --build ${DIR}" just once as well. Everything's working. Thanks Tyler.
--
Shane Dixon
Linux Engineer
-----Original Message-----
From: cmake-bounces at cmake.org on behalf of Dixon, Shane
Sent: Fri 10/23/2009 12:23 PM
To: cmake at cmake.org
Subject: Re: [CMake] Special variables in CTest
That's helpful, but not quite what I'm looking for. The primary reason I'm looking is because I have a nightly script that tries to build the project using both nmake and mingw32-make. It's all in one script. If done from the command-line, both build fine. When done from the script, it builds nmake first, then mingw32-make and the nmake succeeds, but mingw32-make fails at the BUILD stage.
I get through CTEST_CONFIGURE fine and then when CTEST_BUILD runs, it somehow switches back to nmake:
Size of output: 1K
Command exited with the value: 0
SetMakeCommand:nmake -i
SetCTestConfiguration:MakeCommand:nmake -i
SetCTestConfiguration:BuildDirectory:C:/TEMP/ctest_builds/MyProj_build
SetCTestConfiguration:SourceDirectory:C:/TEMP/ctest_builds/MyProj
Build project
MakeCommand:nmake -i
Run command: "nmake" "-i"
Each symbol represents 1024 bytes of output.
'!' represents an error and '*' a warning.
.
I'm confused how it can run fine up to configure point and then suddenly revert to nmake at the CTEST_BUILD command. It looks like MAKECOMMAND gets set only once for the whole script file and never updates.
--
Shane
-----Original Message-----
From: Tyler Roscoe [mailto:tyler at cryptio.net]
Sent: Fri 10/23/2009 11:36 AM
To: Dixon, Shane
Cc: cmake at cmake.org
Subject: Re: [CMake] Special variables in CTest
On Fri, Oct 23, 2009 at 10:55:32AM -0600, Dixon, Shane wrote:
> I've been trying to find documentation for the special variables in
> CTest 2.8, but I can't find them. There are several variables that I
> know are used to initialize defaults, such as CTEST_SVN_COMMAND,
> CTEST_UPDATE_COMMAND, CTEST_BINARY_DIRECTORY, CTEST_BINARY_DIRECTORY,
> etc. Is there somewhere that I can find a full list of these? I
> would expect something like this in the CTest man page under
> "variables", but that man page has no such section.
Maybe not exactly what you're looking for have you looked at CTest.cmake
in your Modules directory? That's where the vars come from and there is
some inline documentation there.
tyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091023/b3fedc4d/attachment-0001.htm>
More information about the CMake
mailing list