[CMake] Adding configuration for a new compiler

Bill Hoffman bill.hoffman at kitware.com
Fri Apr 11 13:16:14 EDT 2008


Hendrik Sattler wrote:

> 
>>> It is possible to fix this for CMake-2.6?
>>>
>> I am not even clear on what changes you need at this point...
> 
> 1.
> <OBJECT_DIR> gives mit a directory path separated by '/', even for nmake 
> generator, should be '\'-separated.
> 

OK, I found the problem and have fixed it here:

$ cvs commit -m "BUG: make sure OBJECT_DIR is in the path of the SHELL" -l
cvs commit: Examining .
? deb.patch
/cvsroot/CMake/CMake/Source/cmMakefileLibraryTargetGenerator.cxx,v  <-- 
  cmMakefileLibraryTargetGenerator.cxx
new revision: 1.61; previous revision: 1.60
/cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx,v  <-- 
cmMakefileTargetGenerator.cxx
new revision: 1.96; previous revision: 1.95

> 2.
> When testing the compiler, the output directory is not created (at least 
> it looks like it). Creating it with
> "${CMAKE_COMMAND} -E make_directory <OBJECT_DIR>"
> works.
> 
This seems to be done already...


   // Create the directory containing the object file.  This may be a
   // subdirectory under the target's directory.
   std::string dir = cmSystemTools::GetFilenamePath(obj.c_str());
   cmSystemTools::MakeDirectory
     (this->LocalGenerator->ConvertToFullPath(dir).c_str());


> 3.
> I am not sure what the "Compiler info" is about, as it fails for this 
> compiler.
> Minor though, just looks strange.
> 

Can you send the errors from this test?

Alex, is this test needed in cross compiling, or can it be avoided?


-Bill


More information about the CMake mailing list