# Revision history [back]

The question is what you mean with "ROS version".

Each package has its own version number. After calling find_package() to find a catkin package foo you can access the version variables for it (as it is recommended CMake standard):

• ${foo_VERSION} •${roscpp_VERSION_MAJOR}
• ${roscpp_VERSION_MINOR} •${roscpp_VERSION_PATCH}

The question is what you mean with "ROS version".

Each package has its own version number. number and they level independently. After calling find_package() to find a catkin package foo you can access the version variables for it (as it is recommended CMake standard):

• ${foo_VERSION} •${roscpp_VERSION_MAJOR}
• ${roscpp_VERSION_MINOR} •${roscpp_VERSION_PATCH}