[CMake] Re: 'make test' doesn't build cppunit test executable

Anton Pervukhin apervukh at minet.uni-jena.de
Wed Mar 28 13:28:04 EST 2007


Hi Bill

> I can not figure it out from the output you have posted.  I suggest that
> you make a very small contained
> example that I can try.   A tar file with all the sources needed to see
> the problem.  I will take a look
> at it if you can create that.

Please, find gzipped tar attached & the log file with more verbose error
message.

I could reproduce the error by doing the following:

cmake /on_source_path -> ok
make -> ok
make test -> error

if one changes into tests directory and runs just 'make' there directly
(before one needs to change the line with 'target_link_libraries' in
tests/CMakeLists.txt, please see comments in this file), then tests are
built ok.

cmake is version 2.5, the release from yeasterday from cvs
os is debian

Hope this is going to be enough.

thank you! Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sandboxlib-0.1.0-Source.tar.gz
Type: application/octet-stream
Size: 10009 bytes
Desc: 
Url : http://public.kitware.com/pipermail/cmake/attachments/20070328/82c4aa5e/sandboxlib-0.1.0-Source.tar-0001.obj
-------------- next part --------------
Start testing: Mar 28 19:46 CEST
----------------------------------------------------------
Changing directory into: /home/erwin/build/sandbox
1/1 Testing: sandboxlib-tests
1/1 Test: sandboxlib-tests
Command: "/usr/local/bin/ctest" "--build-and-test" "/home/erwin/first_try_implementations/sandboxlib/tests" "/home/erwin/build/sandbox/tests" "--build-generator" "Unix Makefiles" "--build-project" "sandboxlib-tests" "--build-makeprogram" "--build-two-config" "--test-command" "sandboxlib-tests" 
Directory: /home/erwin/build/sandbox
"sandboxlib-tests" start time: Mar 28 19:46 CEST
Output:
----------------------------------------------------------
Internal cmake changing into directory: /home/erwin/build/sandbox/tests
======== CMake output     ======
======== End CMake output ======
No such file or directory
Generator: execution of make clean failed.
----------------------------------------------------------
"sandboxlib-tests" end time: Mar 28 19:46 CEST
"sandboxlib-tests" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Mar 28 19:46 CEST


More information about the CMake mailing list