Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can pass them in as CMake variables:

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/gcc -v

This should make each of the run with the C/CXX compiler changed:

==> cmake /Users/william/ros_catkin_ws/src/catkin -DCATKIN_DEVEL_PREFIX=/Users/william/ros_catkin_ws/devel_isolated/catkin -DCMAKE_INSTALL_PREFIX=/Users/william/ros_catkin_ws/install_isolated -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/gcc
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1