[CMake] CMake generated makefiles try to build a target that does not exist (make[2]: *** No rule to make target ...)

Brad King brad.king at kitware.com
Mon Oct 9 21:27:07 EDT 2006


Bill Tonkin wrote:
> I will give the CVS sources a try and report back.  Thank you for your help.

It turns out this was not fixed in CVS, but it is now.  I've also added
a test for out-of-source/out-of-binary subdirectories like your case.

/cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx,v  <--
cmMakefileTargetGenerator.cxx
new revision: 1.47; previous revision: 1.46
/cvsroot/CMake/CMake/Tests/OutOfBinary/CMakeLists.txt,v  <--  CMakeLists.txt
initial revision: 1.1
/cvsroot/CMake/CMake/Tests/OutOfBinary/outlib.c,v  <--  outlib.c
initial revision: 1.1
/cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt,v
 <--  CMakeLists.txt
new revision: 1.6; previous revision: 1.5
/cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx,v
<--  simple.cxx
new revision: 1.5; previous revision: 1.4
/cvsroot/CMake/CMake/Tests/OutOfSource/SubDir/CMakeLists.txt,v  <--
CMakeLists.txt
new revision: 1.6; previous revision: 1.5

This fix will be in 2.4.4.

-Brad


More information about the CMake mailing list