You are not logged in.
Pages: 1
I would to use gcc and g++ in KDevelop instead CMake. Is possible? How?
Thanks.
Offline
I would to use gcc and g++ in KDevelop instead CMake. Is possible? How?
What do you mean exactly?
CMake is a build-system. It only creates the Makefiles. The gcc und g++ are compilers. They may be used by the make system to compile your sourcecode. Cmake builds Makefiles using the compiler of your choice. If the gcc/g++ is available it would be used by default (which is the default on most Linux systems)...
KDevelop is designed to support projects based on the CMake build system and it does this very well. IMHO much better than its competitors. If you want to force CMake to change the compiler just define your favorite one via setting the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER attributes.
regards,
gnux
Offline
Hello gnux83. Thank you for your wide reply.
I thought CMake was a compiler. How can I know what compiler it's using?
Offline
Hi,
you're welcome. As already mentioned under normal Linux this should be gcc. CMake shows which compiler its using. A call to cmake within the main build directory (that one in the hierarchy with the first CMakeLists.txt file) should give you something like:
-- The C compiler identification is GNU 4.4.6
-- The CXX compiler identification is GNU 4.4.6
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - doneregards
Offline
Pages: 1