[CMake] Simple_Mingw_Linux2Win fails: fixed

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 8 10:54:05 EDT 2007


On Wednesday 08 August 2007 10:38, Mathieu Malaterre wrote:
> On 8/8/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> > On Wednesday 08 August 2007 09:33, Mathieu Malaterre wrote:
> > > On 8/8/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> >
> > ...
> >
> > > > Do you have the CXX environment variable set ?
> > >
> > > Nothing under CXX, but I do have a CXXFLAGS...
> >
> > I changed Tests/CMakeLists.txt so it should work now, now the CXX
> > compiler is specified too.
>
> I do not understand how the test ever passed without the target C++
> compier... Anyway this is fixed here:

It should detect that the C compiler is a gcc cross compiler and find the 
appropriate CXX compiler.
This works here for me. So I'd be interested to see why it didn't work for 
you. Some debug output in CMakeDetermineCXXCompiler.cmake might help.

Bye
Alex


More information about the CMake mailing list