[CMake] Simple_Mingw_Linux2Win fails

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 8 09:32:28 EDT 2007


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 ?

Alex


More information about the CMake mailing list