On 2018-12-31 16:38-0500 Kyle Edwards via CMake wrote:

On Mon, 2018-12-31 at 16:16 -0500, Donald MacQueen [|] via CMake wrote:
First, CMake is quite impressive. Nice job.

I am using it in a non-standard way where I set a bunch of variables
and 
then go straight to CTest thatI installs our software and then runs 
several hundred tests on it. The batch file looks like this:

rmdir /s/q build
mkdir build
cd build
cmake -Dx64=%x64% -Doption:STRING="%opt%" ..
ctest -D Experimental -S

I do not make or build or compile.

I recently hooked this up to a CDash server which is very handy. I
want 
to get the results that are sent to CDash, currently from Windows
only, 
to be all green.

Under Build I have one error: Build log line 2. The system cannot
find 
the file specified. CMake Error: Generator: execution of make
failed. 
Make command was: "nmake" "/nologo" "-i"

You could try one of several things:

1) Running with a different generator, such as one of the Visual Studio
   generators or the Ninja generator, or
2) Installing NMake.

However, I am a little curious about what you're doing in your use
case. You say you're not building anything. Does your sofware exist in
the form of scripts (Python, Perl, etc.), or are you downloading pre-
built binaries from somewhere?

I am curious as well about that issue.  It is possible the error he is getting
is because one or more of his tests are not working because he doesn't
use a build step to build something in his project that is needed by those 
tests.

So to ask the question directly to the OP, do you have any CMake logic
anywhere in this project that builds software, e.g., the add_library or
add_executable commands?  If so, you do have to build all such software
first (by building the "all" target) before you run ctest if any
of your ctest tests depend on those built libraries or executables.

Alan
__________________________
Alan W. Irwin

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to