[CMake] Simple_Mingw_Linux2Win fails

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Aug 8 09:35:42 EDT 2007


On 8/8/07, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> On 8/8/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> > On Wednesday 08 August 2007 09:20, Mathieu Malaterre wrote:
> > > Looks like Simple_Mingw_Linux2Win is trying the host C++ compiler
> > > instead of the target c++ compiler for some reason.
> > >
> > >  84/ 89 Testing Simple_Mingw_Linux2Win
> > > Test command: /home/mmalaterre/Dashboards/MyTests/CMake-gcc42/bin/ctest
> > > --build-and-test
> > > /home/mmalaterre/Dashboards/MyTests/CMake/Tests/Simple
> > > /home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Wi
> > >n --build-generator Unix\ Makefiles --build-project Simple
> > > --build-makeprogram /usr/bin/make --build-options
> > > -DCMAKE_SYSTEM_NAME=Windows
> > > -DCMAKE_C_COMPILER=/usr/bin/i586-mingw32msvc-gcc
> > > Internal cmake changing into directory:
> > > /home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Wi
> > >n Error: cmake execution failed
> > > CMake Error: The C++ compiler "/usr/bin/g++-4.2" is not able to
> > > compile a simple test program.
> >
> > Do you have the CXX environment variable set ?
>
> Nothing under CXX, but I do have a CXXFLAGS...


BTW project Simple do need a C++ compiler...

-- 
Mathieu


More information about the CMake mailing list