Try moving the quotes like this: cmake ...... "-DCMAKE_CXX_COMPILER:string=g++" .......
On 8/8/07, Marie-Christine Vallet <[EMAIL PROTECTED]> wrote: > > Hi, > I would like to use g++ as my c compiler (which works) but cmake does > not let me do that. Is this normal? > Thanks again, > Marie > > > > cmake -DCMAKE_Fortran_COMPILER:string=g77 > -DCMAKE_CXX_COMPILER:string="g++" -DCMAKE_C_COMPILER:string="g++" > > > > -- Check for working CXX compiler: g++ > -- Check for working CXX compiler: g++ -- works > -- Check for working C compiler: g++ > -- Check for working C compiler: g++ -- broken > CMake Error: The C compiler "g++" is not able to compile a simple test > program. > It fails with the following output: > /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make > CMakeFiles/cmTryCompileExec.dir/build > gmake[1]: Entering directory > `/home/renault/kdeworkspace/skinmesh/CMakeFiles/CMakeTmp' > /usr/bin/cmake -E cmake_progress_report > /home/renault/kdeworkspace/skinmesh/CMakeFiles/CMakeTmp/CMakeFiles 1 > Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o > /usr/bin/g++ -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c > /home/renault/kdeworkspace/skinmesh/CMakeFiles/CMakeTmp/testCCompiler.c > > /home/renault/kdeworkspace/skinmesh/CMakeFiles/CMakeTmp/testCCompiler.c:2:3: > error: #error "The CMAKE_C_COMPILER is set to a C++ compiler" > gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1 > gmake[1]: Leaving directory > `/home/renault/kdeworkspace/skinmesh/CMakeFiles/CMakeTmp' > gmake: *** [cmTryCompileExec/fast] Error 2 > > > CMake will not be able to correctly generate this project. > -- Configuring done > > _______________________________________________ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake