Hi Losif, Yes, this what im looking for. It works! Thank you. I have problem in running make to compile an open source project. Im using virtualbox and my RAM settings in under 500mb. My compilation alway get stuck here:
[ 18%] Building CXX object storage/blackhole/CMakeFiles/blackhole.dir/ha_blackhole.cc.o cd /home/gh0st/webscalesql-5.6/storage/blackhole && /usr/bin/g++-4.7 -DHAVE_CONFIG_H -Wall -Wno-unused-parameter -std=c++11 -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I/home/gh0st/webscalesql-5.6/include -I/home/gh0st/webscalesql-5.6/sql -I/home/gh0st/webscalesql-5.6/regex -I/home/gh0st/webscalesql-5.6/extra/yassl/include -I/home/gh0st/webscalesql-5.6/extra/yassl/taocrypt/include -I/home/gh0st/webscalesql-5.6/zlib -o CMakeFiles/blackhole.dir/ha_blackhole.cc.o -c /home/gh0st/webscalesql-5.6/storage/blackhole/ha_blackhole.cc This seems out of the topic, but if you can advise me that would be great. regards, Naim S. On Saturday, April 12, 2014, Iosif Neitzke <iosif.neitzke+cm...@gmail.com> wrote: Is this usage what you are describing? http://cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F On Sat, Apr 12, 2014 at 7:48 AM, <shahi...@mycrypto.biz> wrote: > Hi, > > i want to change CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to gcc-4.7 and > g++-4.7. But when i run cmake, the configuration rollback to default. Can > somebody help me? > > ==> CMakeCCompiler.cmake <== > SET(CMAKE_C_COMPILER "/usr/bin/gcc") > SET(CMAKE_C_COMPILER_ARG1 "") > SET(CMAKE_C_COMPILER_ID "GNU") > SET(CMAKE_C_PLATFORM_ID "Linux") > > SET(CMAKE_AR "/usr/bin/ar") > SET(CMAKE_RANLIB "/usr/bin/ranlib") > SET(CMAKE_LINKER "/usr/bin/ld") > SET(CMAKE_COMPILER_IS_GNUCC 1) > SET(CMAKE_C_COMPILER_LOADED 1) > > ==> CMakeCXXCompiler.cmake <== > SET(CMAKE_CXX_COMPILER "/usr/bin/c++") > SET(CMAKE_CXX_COMPILER_ARG1 "") > SET(CMAKE_CXX_COMPILER_ID "GNU") > SET(CMAKE_CXX_PLATFORM_ID "Linux") > > SET(CMAKE_AR "/usr/bin/ar") > SET(CMAKE_RANLIB "/usr/bin/ranlib") > SET(CMAKE_LINKER "/usr/bin/ld") > SET(CMAKE_COMPILER_IS_GNUCXX 1) > SET(CMAKE_CXX_COMPILER_LOADED 1) > > > > > regards, > Naim S. > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake