CC=cc CXX=CC /mnt/tools/bin/cmake --version
cmake version 2.4-patch 3
[EMAIL PROTECTED]:/tmp/cmake/build$ CC=cc CXX=CC /mnt/tools/bin/cmake ..
-- Check for working C compiler: /opt/sun/sunstudiomars/bin/cc
-- Check for working C compiler: /opt/sun/sunstudiomars/bin/cc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /opt/sun/sunstudiomars/bin/CC
-- Check for working CXX compiler: /opt/sun/sunstudiomars/bin/CC -- broken
CMake Error: Error in cmake code at
/mnt/tools/share/CMake/Modules/CMakeTestCXXCompiler.cmake:25:
MESSAGE The C++ compiler "/opt/sun/sunstudiomars/bin/CC" is not able to compile a simple test program.
It fails with the following output:
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/tmp/cmake/build/CMakeFiles/CMakeTmp'
/mnt/tools/bin/cmake -E cmake_progress_report /tmp/cmake/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o
/opt/sun/sunstudiomars/bin/CC -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c /tmp/cmake/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec
/mnt/tools/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/opt/sun/sunstudiomars/bin/CC -fPIC "CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o" -o cmTryCompileExec -rdynamic
CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -rdynamic passed to ld, if ld is invoked, ignored otherwise
/usr/bin/ld: bad -rpath option
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory `/tmp/cmake/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Current CMake stack: /tmp/cmake/CMakeLists.txt;/mnt/tools/share/CMake/Modules/CMakeCInformation.cmake;/mnt/tools/share/CMake/Modules/CMakeCXXInformation.cmake;/mnt/tools/share/CMake/Modules/CMakeTestCXXCompiler.cmake-- Configuring done
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
