Ask Your Question
1

Specifying which compiler to use

asked 2013-01-28 10:31:57 -0500

BigBlueDart gravatar image

updated 2014-01-28 17:15:01 -0500

ngrennan gravatar image

When I run the catkin installation it appears that cmake is using the PGI compiler available on the system I am using. I did not explicitly tell it to use that, so I assume that it just decided that was the best one to use. However, while building the rospack package I get an error saying that it does not recognize the -Wall switch. I would like to force the build process to use the GNU compilers instead of the PGI one. Where can I change this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-28 11:37:55 -0500

kalectro gravatar image

Try this:

catkin_make -DCMAKE_CXX_COMPILER=/path/to/c++ --force-cmake

the force-cmake flag is neccessary, I just tried it out ;)

edit flag offensive delete link more

Comments

It appears that I only get this issue when running catkin_make_isolated. Running catkin_make does not appear to have the same problem recognizing flags.

BigBlueDart gravatar image BigBlueDart  ( 2013-01-29 03:34:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-28 10:31:57 -0500

Seen: 84 times

Last updated: Jan 28 '13