[CMake] Adding configuration for a new compiler

Alexander Neundorf a.neundorf-work at gmx.net
Mon Apr 14 17:02:41 EDT 2008


On Friday 11 April 2008, Bill Hoffman wrote:
> 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?

This is the ABI test. It is not special for cross compiling, but it would be 
nice if it would work. 
We need to see the error message.

Alex


More information about the CMake mailing list