Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Gazebo 6 #190

Merged
merged 1 commit into from
May 5, 2015
Merged

Add support for Gazebo 6 #190

merged 1 commit into from
May 5, 2015

Conversation

traversaro
Copy link
Member

This will compile gazebo-yarp-plugins as C++11 code if you are using Gazebo 6, this is mysteriously working on Ubuntu 14.04 even if YARP is compiled as C++98... but I guess it will cause a lot of problems. Merging because it is not changing anything in Gazebo <= 5 .

traversaro added a commit that referenced this pull request May 5, 2015
@traversaro traversaro merged commit 6bdb463 into master May 5, 2015
@traversaro traversaro deleted the gazebo6support branch May 5, 2015 14:49
traversaro added a commit that referenced this pull request Jul 16, 2020
GAZEBO_CXX_FLAGS was added to CMAKE_CXX_FLAGS in #190
to support compilation against Gazebo 6 that required C++11, and unfortunately since then Gazebo did not switch to a modern
way of specifying C++ standard requirement in consuming libraries. Now that YARP requires C++14, passing GAZEBO_CXX_FLAGS 
(that contains -std=c++11) basically bypass the CMake logic to compute the correct C++ standard with which to compile the plugins,
and forces to compile them with C++11. 

As the only reason for which GAZEBO_CXX_FLAGS was added to CMAKE_CXX_FLAGS was to enable C++11 support, and as that is already 
passed as a requirement by YARP, I think we can just remove it.

Related SDFormat PR: gazebosim/sdformat#251 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant